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

            return(View(Events));
        }