Esempio n. 1
0
        public ActionResult List()
        {
            var objENContest = new enContest();
            var objBLContest = new blContest(objENContest);
            List <enContest> listOfContests = new List <enContest>();

            try
            {
                listOfContests = objBLContest.ReadAll();
            }
            catch (Exception ex)
            {
                return(View("error", "misc"));
            }
            return(View(listOfContests));
        }
Esempio n. 2
0
        public ActionResult Login()
        {
            if (TempData["forgetPassword"] != null)
            {
                ViewBag.VerificationMessage = TempData["forgetPassword"].ToString();
            }
            var objENContest = new enContest()
            {
                GetByDate = true
            };
            var objBLContest = new blContest(objENContest);

            try
            {
                objENContest = objBLContest.ReadAll().FirstOrDefault();
            }
            catch (Exception ex)
            {
            }
            ViewBag.Contest = objENContest;
            return(View());
        }