public ActionResult Index() { EventsModel Model = new EventsModel() { UserNews = NewsroomService.GetNews(), UserJobs = UserJobPostingservice.GetJobs().ToList().Take(6), DisplayHome = EventServices.GetEventsforHome() }; return(View(Model)); }
public ActionResult Index() { if (Session["UserId"] != null) { Session.Remove("UserId"); return(RedirectToAction("Index", "Home", new { area = "" })); } EventsModel Model = new EventsModel() { UserNews = NewsroomService.GetNews(), UserJobs = UserJobPostingservice.GetJobs().ToList().Take(6), DisplayHome = EventServices.GetEventsforHome(), Activities = GenericMethodsservices.GetActivities() }; return(View(Model)); }