Example #1
0
        public ActionResult SingleJob(int id)
        {
            JobsModel Jobs = new JobsModel()
            {
                singleJobs = UserJobPostingservice.GetJobsbyId(id)
            };

            return(View(Jobs));
        }
Example #2
0
 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 = "" }));
 }
Example #3
0
        public JsonResult GetJobsonid(int id)
        {
            var data = UserJobPostingservice.GetJobsbyId(id);

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