// GET: JobOffer/Details/5 public ActionResult Details(int id) { joboffer job = jobService.GetById(id); ViewBag.job = job; ViewBag.numPostulations = jobService.getNumberOfPostulations(job.id); return(View()); }
public ActionResult Analytics(int id) { joboffer job = jobService.GetById(id); ViewBag.job = job; ViewBag.numPostulations = jobService.getNumberOfPostulations(job.id); ViewBag.estimation = jobService.getAverageJobSalary(job); return(View()); }
public ActionResult Switch(int id) { joboffer job = jobService.GetById(id); if (job.active == true) { job.active = false; } else { job.active = true; } jobService.commit(); return(RedirectToAction("Index", "JobOffer")); }