public ActionResult Index() { if (Session["userName"] != null) { dal.UpdateNotificationsByType("withdrawal"); WithdrawalViewModel wvm = new WithdrawalViewModel(); WithdrawalSearchModel wsm = new WithdrawalSearchModel(); wsm.Status = Status.PENDING; wvm.WithdrawalModelList = dal.GetWithdrawals(wsm); var bankAccount = dal.GetBanks(); ViewBag.BankAccount = new SelectList(bankAccount, "Id", "BankName"); var gameType = dal.GetGameTypes(); ViewBag.GameType = new SelectList(gameType, "Id", "GameType"); var status = from Status s in Enum.GetValues(typeof(Status)) select new { ID = (int)s, Name = s.ToString() }; ViewBag.Status = new SelectList(status, "ID", "Name"); wvm.Message = Session["message"] != null ? Session["message"].ToString() : null; wvm.RequestStatus = Session["requestStatus"] != null ? Session["requestStatus"].ToString() : null; Session.Remove("message"); Session.Remove("requestStatus"); return(View(wvm)); } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Index() { if (Session["userName"] != null) { dal.UpdateNotificationsByType("member"); MemberViewModel mvm = new MemberViewModel(); mvm.MemberModelList = dal.GetMembers(null); var bankAccount = dal.GetBanks(); ViewBag.BankAccount = new SelectList(bankAccount, "Id", "BankName"); var gameType = dal.GetGameTypes(); ViewBag.GameType = new SelectList(gameType, "Id", "GameType"); var status = from Status s in Enum.GetValues(typeof(Status)) select new { ID = (int)s, Name = s.ToString() }; ViewBag.Status = new SelectList(status, "ID", "Name"); mvm.Message = Session["message"] != null ? Session["message"].ToString() : null; mvm.RequestStatus = Session["requestStatus"] != null ? Session["requestStatus"].ToString() : null; Session.Remove("message"); Session.Remove("requestStatus"); return(View(mvm)); } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Index() { ContentManagementController cmc = new ContentManagementController(); ViewBag.Contents = cmc.GetContentsByType(ContentType.WITHDRAWALTEXT).Contents; WithdrawalViewModel wvm = new WithdrawalViewModel(); wvm.WithdrawalModel = new WithdrawalModel(); wvm.DepositModelList = dal.GetLatestDeposits(); wvm.WithdrawalModelList = dal.GetLatestWithdrawals(); ViewBag.TogelText = dal.GetContentsByType(ContentType.TOGELTEXT).Contents; ViewBag.TogelDate = dal.GetContentsByType(ContentType.TOGELDATE).Contents; ViewBag.TogelTime = dal.GetContentsByType(ContentType.TOGELTIME).Contents; ViewBag.TogelTitle = dal.GetContentsByType(ContentType.TOGELTITLE).Contents; var bankAccount = dal.GetBanks(); ViewBag.BankAccount = new SelectList(bankAccount, "Id", "BankName"); var gameType = dal.GetGameTypes(); ViewBag.GameType = new SelectList(gameType, "Id", "GameType"); return(View(wvm)); }
public ActionResult Index() { ContentManagementController cmc = new ContentManagementController(); ViewBag.Contents = cmc.GetContentsByType(ContentType.REGISTERTEXT).Contents; RegistrationViewModel rvm = new RegistrationViewModel(); rvm.RegistrationModel = new RegistrationModel(); rvm.DepositModelList = dal.GetLatestDeposits(); rvm.WithdrawalModelList = dal.GetLatestWithdrawals(); ViewBag.TogelText = dal.GetContentsByType(ContentType.TOGELTEXT).Contents; ViewBag.TogelDate = dal.GetContentsByType(ContentType.TOGELDATE).Contents; ViewBag.TogelTime = dal.GetContentsByType(ContentType.TOGELTIME).Contents; ViewBag.TogelTitle = dal.GetContentsByType(ContentType.TOGELTITLE).Contents; var bankAccount = dal.GetBanks(); ViewBag.BankAccount = new SelectList(bankAccount, "Id", "BankName"); var gameType = dal.GetGameTypes(); ViewBag.GameType = new SelectList(gameType, "Id", "GameType"); var status = from Status s in Enum.GetValues(typeof(Status)) select new { ID = (int)s, Name = s.ToString() }; ViewBag.Status = new SelectList(status, "ID", "Name"); return(View(rvm)); }