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)); }
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()); }