PlayRuleBLL.cs 738 B

12345678910111213141516171819202122232425262728293031
  1. using Interface;
  2. using Models.Entity.LotteryNumDB;
  3. using Services;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Business.WF
  10. {
  11. public static class PlayRuleBLL
  12. {
  13. private static LotteryNumInterface services;
  14. static PlayRuleBLL()
  15. {
  16. services = new LotteryService();
  17. }
  18. /// <summary>
  19. /// 根据彩票种类itemid得到其玩法规则
  20. /// </summary>
  21. /// <param name="id">彩票种类itemId</param>
  22. /// <returns></returns>
  23. public static B_Awards GetAwardByPrizeID(string id)
  24. {
  25. return services.QueryItembyKey<B_Awards>(id);
  26. }
  27. }
  28. }