KJApiBLL.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using Business.KJH;
  2. using Cache;
  3. using Common;
  4. using Models;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Web;
  9. namespace M55128_rec.Business
  10. {
  11. public static class KJApiBLL
  12. {
  13. // private static LogHelper log = null;
  14. static KJApiBLL()
  15. {
  16. // log = new LogHelper();
  17. }
  18. public static List<LotteryData> GetLottery()
  19. {
  20. List<LotteryData> list = new List<LotteryData>();
  21. try
  22. {
  23. list = AppCtrl.GetObj().GetLotteryCache().GetLottery();//
  24. // Ctrl.GetLottery();
  25. }
  26. catch (Exception ee)
  27. {
  28. LogHelper.Error(typeof(KJApiBLL), ee.Message + "GetLottery");
  29. }
  30. return list;
  31. }
  32. public static LotteryData GetLottery(string typename)
  33. {
  34. return AppCtrl.GetObj().GetLotteryCache().GetLottery(typename);
  35. }
  36. public static KaijiangDetailsEntity GetKaijiangEntity(string type, string id)
  37. {
  38. return KJBLL.GetKaijiangEntity(type, id);
  39. }
  40. }
  41. }