Esempio n. 1
0
 public ActionResult ViewJobs()
 {
     if (Session["UserId"] != null)
     {
         var model = UserJobPostingservice.GetJobs();
         return(View(model));
     }
     return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" }));
 }
Esempio n. 2
0
        public JsonResult DeleteMyJob(int Jobid)
        {
            int Status = 3;

            UserJobPostingservice.UpdateJobs(Jobid, Status);
            var Data = UserJobPostingservice.GetJobs();

            return(Json(Data, JsonRequestBehavior.AllowGet));
        }
Esempio n. 3
0
        public ActionResult Index()
        {
            EventsModel Model = new EventsModel()
            {
                UserNews = NewsroomService.GetNews(),
                UserJobs = UserJobPostingservice.GetJobs().ToList().Take(6),

                DisplayHome = EventServices.GetEventsforHome()
            };

            return(View(Model));
        }
Esempio n. 4
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));
        }
Esempio n. 5
0
        public JsonResult Jobs()
        {
            var Data = UserJobPostingservice.GetJobs();

            return(Json(Data, JsonRequestBehavior.AllowGet));
        }