// GET: Admin public ActionResult Index() { if (User.Identity.GetUserName() != "*****@*****.**") { return(RedirectToAction("Index", "Event")); } List <Event> Events = serviceBusiness.GetAllEvents(); return(View(Events)); }
// GET: Admin public ActionResult Index() { if (User.Identity.GetUserName() != "*****@*****.**") { return(RedirectToAction("Index", "Event")); } List <Event> Events = serviceBusiness.GetAllEvents(); return(View(Events)); }