public ActionResult DashBoard() { System.Diagnostics.Debug.WriteLine(AuthUser.isAdminLogIn()); if (AuthUser.isAdminLogIn()) { HttpCookie myCookie = AuthUser.getUserType(); if (myCookie.Value.Contains("gamer")) { Gamer gm = AuthUser.getGamerUser(); return(RedirectToAction("ProfileView", "Home", new { id = gm.GamerId })); } if (myCookie.Value.Contains("organizer")) { Organizer or = AuthUser.getOrganizerUser(); return(RedirectToAction("Organizerprofileview", "Home", new { id = or.Organizerid })); } } else { return(RedirectToAction("Logout")); } return(null); }