public JsonResult GetConsumeCount(int timeType) { List <ConsumeCountChart> chartList = new ChartBLL().GetConsumeCount(timeType); int totalCount = FiiiPayDB.DB.Queryable <Orders>().Count(); return(Json(new { Data = chartList, TotalCount = totalCount }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetMemberCount(int timeType) { List <MemberCountChart> chartList = new ChartBLL().GetMemberCount(timeType); int userTotal = FiiiPayDB.DB.Queryable <UserAccounts>().Count(); int merchantTotal = FiiiPayDB.DB.Queryable <MerchantAccounts>().Count(); return(Json(new { Data = chartList, UserTotal = userTotal, MerchantTotal = merchantTotal }, JsonRequestBehavior.AllowGet)); }