// GET: Meal/Create public ActionResult Create() { if (Session["employee"] == null) { return(RedirectToAction("Login", "Login")); } else { eventlist = new CEventList(); eventlist.Load(); return(View(t_event)); } }
// GET: Event public ActionResult Index() { if (Session["employee"] == null) { return(RedirectToAction("Login", "Login", new { returnurl = HttpContext.Request.Url })); } else { o_events = new CEventList(); o_events.Load(); ViewBag.Message = "All Active Events"; return(View(o_events)); } }