// GET: ContactUs public ActionResult Index() { DAL.DAL dal = new DAL.DAL(); ContactUsViewModel cvm = new ContactUsViewModel(); cvm.DepositModelList = dal.GetLatestDeposits(); cvm.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; ContentManagementController cmc = new ContentManagementController(); ViewBag.Contents = cmc.GetContentsByType(ContentType.CONTACTUSTEXT).Contents; ViewBag.LiveChat = cmc.GetContentsByType(ContentType.CONTACTUSLIVECHATTEXT).Contents; ViewBag.YahooMail = cmc.GetContentsByType(ContentType.CONTACTUSYAHOOMAILTEXT).Contents; ViewBag.Bbm = cmc.GetContentsByType(ContentType.CONTACTUSBBMTEXT).Contents; ViewBag.Line = cmc.GetContentsByType(ContentType.CONTACTUSLINETEXT).Contents; ViewBag.WeChat = cmc.GetContentsByType(ContentType.CONTACTUSWECHATTEXT).Contents; ViewBag.WhatsApp = cmc.GetContentsByType(ContentType.CONTACTUSWHATSAPPTEXT).Contents; return(View(cvm)); }
public ActionResult Index() { ContentManagementController cmc = new ContentManagementController(); ViewBag.Contents = cmc.GetContentsByType(ContentType.DEPOSITTEXT).Contents; DepositViewModel dvm = new DepositViewModel(); dvm.DepositModel = new DepositModel(); dvm.DepositModelList = dal.GetLatestDeposits(); dvm.WithdrawalModelList = dal.GetLatestWithdrawals(); dvm.BankDepositModelList = dal.GetBankDepositList(); 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(dvm)); }
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)); }