Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        // 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));
        }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        // GET: Games
        public ActionResult Index()
        {
            DAL.DAL        dal = new DAL.DAL();
            GamesViewModel gvm = new GamesViewModel();

            gvm.DepositModelList    = dal.GetLatestDeposits();
            gvm.WithdrawalModelList = dal.GetLatestWithdrawals();
            gvm.GameModelList       = dal.GetGamesList();

            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;


            return(View(gvm));
        }
Esempio n. 5
0
        // GET: Promotion
        public ActionResult Index()
        {
            DAL.DAL            dal = new DAL.DAL();
            PromotionViewModel pvm = new PromotionViewModel();

            pvm.DepositModelList    = dal.GetLatestDeposits();
            pvm.WithdrawalModelList = dal.GetLatestWithdrawals();
            pvm.PromotionModelList  = dal.GetPromotionList();

            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;


            return(View(pvm));
        }
Esempio n. 6
0
        public ActionResult Index()
        {
            DashboardModel dm = new DashboardModel();

            dm.DepositModelList    = dal.GetLatestDeposits();
            dm.WithdrawalModelList = dal.GetLatestWithdrawals();

            ViewBag.TogelText  = dal.GetContentsByType(Models.Enum.ContentType.TOGELTEXT).Contents;
            ViewBag.TogelDate  = dal.GetContentsByType(Models.Enum.ContentType.TOGELDATE).Contents;
            ViewBag.TogelTime  = dal.GetContentsByType(Models.Enum.ContentType.TOGELTIME).Contents;
            ViewBag.TogelTitle = dal.GetContentsByType(Models.Enum.ContentType.TOGELTITLE).Contents;

            ViewBag.DashboardImage1 = dal.GetContentsByType(Models.Enum.ContentType.DASHBOARDIMAGE1).Contents;
            ViewBag.DashboardImage2 = dal.GetContentsByType(Models.Enum.ContentType.DASHBOARDIMAGE2).Contents;
            ViewBag.DashboardImage3 = dal.GetContentsByType(Models.Enum.ContentType.DASHBOARDIMAGE3).Contents;

            return(View(dm));
        }
Esempio n. 7
0
 public ContentManagementModel GetContentsByType(ContentType type)
 {
     return(dal.GetContentsByType(type));
 }