public ActionResult SingleJob(int id) { JobsModel Jobs = new JobsModel() { singleJobs = UserJobPostingservice.GetJobsbyId(id) }; return(View(Jobs)); }
public ActionResult SingleJob(int id) { if (Session["UserId"] != null) { JobsModel Jobs = new JobsModel() { singleJobs = UserJobPostingservice.GetJobsbyId(id) }; return(View(Jobs)); } return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" })); }
public JsonResult GetJobsonid(int id) { var data = UserJobPostingservice.GetJobsbyId(id); return(Json(data, JsonRequestBehavior.AllowGet)); }