public ActionResult JobPosting(UserPosting_Jobs Jobs, HttpPostedFileBase File) { if (Session["UserId"] != null) { if (Jobs.Jobid != 0) { Jobs.Userid = Convert.ToInt64(Session["UserId"].ToString()); Jobs.UpdatedOn = DateTime.Now; UserJobPostingservice.UpdateMyPostedJobs(Jobs); TempData["Message"] = "Job details successfully Updated"; return(RedirectToAction("MyPostedJobs", "Jobs", new { area = "Faculty" })); } else { var FilePath = ""; if (File != null) { var fileName = Path.GetFileName(File.FileName); var path = Path.Combine(Server.MapPath("~/UserPostingImages/" + fileName)); File.SaveAs(path); FilePath = "/UserPostingImages/" + fileName; } Jobs.Userid = Convert.ToInt64(Session["UserId"].ToString()); Jobs.CreatedOn = DateTime.Now; Jobs.Status = 0; Jobs.Filepath = FilePath; UserJobPostingservice.Create(Jobs); TempData["Message"] = "you successfully posted the job and awating for the admin approval.."; } return(RedirectToAction("JobPosting", "Jobs", new { area = "Faculty" })); } return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" })); }
public JsonResult UpdateJobs(int Jobid, int Status) { UserJobPostingservice.UpdateJobs(Jobid, Status); var data = UserJobPostingservice.GetPendingApprovals(2); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult DeleteMyJob(int Jobid) { int Status = 3; UserJobPostingservice.UpdateJobs(Jobid, Status); var Data = UserJobPostingservice.GetJobs(); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public ActionResult ViewJobs() { if (Session["UserId"] != null) { var model = UserJobPostingservice.GetJobs(); return(View(model)); } return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" })); }
public ActionResult SingleJob(int id) { JobsModel Jobs = new JobsModel() { singleJobs = UserJobPostingservice.GetJobsbyId(id) }; return(View(Jobs)); }
public ActionResult MyPostedJobs() { if (Session["UserId"] != null) { var model = UserJobPostingservice.GetUserPosetdJobs(Convert.ToInt32(Session["UserId"].ToString())); return(View(model)); } return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" })); }
public ActionResult ViewJobs(string JobTitle, string ComapnyName, string Skills) { if (Session["UserId"] != null) { var model = UserJobPostingservice.GetJobsonserach(JobTitle, ComapnyName, Skills); return(View(model)); } return(RedirectToAction(LoginPages.Login, LoginPages.Account, new { area = "" })); }
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 ActionResult Index() { EventsModel Model = new EventsModel() { UserNews = NewsroomService.GetNews(), UserJobs = UserJobPostingservice.GetJobs().ToList().Take(6), DisplayHome = EventServices.GetEventsforHome() }; return(View(Model)); }
public ActionResult JobDetails(int id) { var Jobs = UserJobPostingservice.Get(id); if (id != null) { Session["Jobid"] = id; } JobPosting Jobsposted = new JobPosting() { JobTitle = Jobs.JobTitle, JobId = Jobs.Jobid }; return(View(Jobsposted)); }
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)); }
public ActionResult Jobs(int Status) { var data = UserJobPostingservice.GetPendingApprovals(Status); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult JobsAutosearch(string JobTitle, int Status) { var Data = UserJobPostingservice.GetUserAutocomplete(JobTitle, Status); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetJobsonid(int id) { var data = UserJobPostingservice.GetJobsbyId(id); return(Json(data, JsonRequestBehavior.AllowGet)); }
public JsonResult GetUserpostedJobs() { var Data = UserJobPostingservice.GetUserPosetdJobs(Convert.ToInt32(Session["UserId"])); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult Jobs() { var Data = UserJobPostingservice.GetJobs(); return(Json(Data, JsonRequestBehavior.AllowGet)); }
public JsonResult Myjobs() { var data = UserJobPostingservice.MyPostedJobs(Convert.ToInt32(Session["UserId"].ToString())); return(Json(data, JsonRequestBehavior.AllowGet)); }