public ActionResult ViewJob(int id) { TempData["Applied"] = false; if (jobApplyActivityRepository.GetAll().FindAll(ac => ac.StudentId == (int)Session["id"] && ac.Id == id).ToList().Count != 0) { TempData["Applied"] = true; } return(View(jobPostRepository.Get(id))); }
public ActionResult ViewApplicants(int id) { return(View(jobApplyActivityRepository.GetAll().FindAll(ar => ar.JobPostId == id))); }