Example #1
0
        public ActionResult StaticWalletTotalDay(int type)
        {
            var to = DateTime.Now.TotalSeconds();
            var fr = DateTime.Today.AddDays(-7).TotalSeconds();

            if (type == 1)
            {
                type = (int)Reward.Cus;
            }
            if (type == 2)
            {
                type = (int)Reward.Agency;
            }
            if (type == 3)
            {
                type = (int)Reward.Souce;
            }

            var model = _agencyDa.GetStaticChartsTotalDay(CustomerId, fr, to, type);

            return(Json(new BaseResponse <List <StaticWalletsTotal> >()
            {
                Code = 200, Data = model
            }, JsonRequestBehavior.AllowGet));
        }