using Business.KJH;
using Cache;
using Cache.Cache;
using Common;
using Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace M55128_rec.Business
{
    public static class KJApiBLL
    {
       // private static LogHelper log = null;
        static KJApiBLL()
        {
           // log = new LogHelper();
        }

        public static List<LotteryData> GetLottery()
        {
            List<LotteryData> list = new List<LotteryData>();
            try
            {
                list = LotteryCache.GetLottery();//
               // Ctrl.GetLottery();
            }
            catch (Exception ee)
            {

                LogHelper.Error(typeof(KJApiBLL), ee.Message + "GetLottery");
            }
            return list;

        }
        public static LotteryData GetLottery(string typename)
        {
           return LotteryCache.GetLottery(typename);
        }
        public static KaijiangDetailsEntity GetKaijiangEntity(string type, string id)
        {
            return KJBLL.GetKaijiangEntity(type, id);
        }
        
    }
}