public ActionResult Delete(long vacancyId) { var vacancy = vacancyRepository.Load(vacancyId); vacancyRepository.Delete(vacancy); return(RedirectToAction("Index")); }
public ActionResult Delete(long vacancyId) { var vacancy = vacancyRepository.Load(vacancyId); vacancyRepository.Delete(vacancy); return(RedirectToAction("Index")); }