Ejemplo n.º 1
0
        public ActionResult Index()
        {
            EventsModel Model = new EventsModel()
            {
                UserNews = NewsroomService.GetNews(),
                UserJobs = UserJobPostingservice.GetJobs().ToList().Take(6),

                DisplayHome = EventServices.GetEventsforHome()
            };

            return(View(Model));
        }
Ejemplo n.º 2
0
        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));
        }