public ActionResult Index() { // Get all users var currentUsers = this.dbContext.Users.ToList(); var model = new AdminIndexModels { Users = currentUsers }; return(this.View(model)); }
public AdminIndexModels GetDefaultData() { //decimal staticnum = MemberCapitalDetailDAL.GetTotalAmontForPlant(out dynamicnum); string datastart = DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00"; string dataend = DateTime.Now.ToString("yyyy-MM-dd") + " 23:59:59"; AdminIndexModels model = new AdminIndexModels(); model.ActiveCodeCount = ActiveCodeDAL.GetTotalCount(1); //全部激活码数量 model.ActiveMemberCount = MemberInfoDAL.GetTotalMemberCount(2); model.PaidanCodeCount = ActiveCodeDAL.GetTotalCount(2); //全部排单币数量 model.TotalAcceptAmont = AcceptHelpOrderDAL.GetTotalAcceptMoney(); model.TotalHelpAmont = HelpeOrderDAL.GetTotalHelpMoney(); model.TotalMemberCount = MemberInfoDAL.GetTotalMemberCount(1); model.TodayAcceptMoney = AcceptHelpOrderDAL.GetTodayAcceptMoney(datastart, dataend); model.TodayHelpMoney = HelpeOrderDAL.GetTodayHelpMoney(datastart, dataend); model.TodayMatchedMoney = MatchOrderDAL.GetTotalMatchMoneyByDay(datastart, dataend); model.TotalMatchMoney = MatchOrderDAL.GetTotalMatchMoney(); return(model); }