public ActionResult Delete(int id, Cohort cohort) { try { // TODO: Add delete logic here CohortsRepository.DeleteCohort(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Delete(int id, Cohort cohort) { try { // TODO: Add delete logic here CohortsRepository.DeleteCohort(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }