// GET: Cohorts/Details/5 public ActionResult Details(int id) { //encapsulation StudentRepository.GetStudent var cohort = CohortRepository.GetCohort(id); return(View(cohort)); }
// GET: Students/Details/5 public ActionResult Details(int id) { var cohort = CohortRepository.GetCohort(id); return(View(cohort)); }
// GET: Cohort/Edit/5 public ActionResult Edit(int id) { var model = CohortRepository.GetCohort(id); return(View(model)); }
// GET: Cohorts/Delete/5 public ActionResult DeleteConfirm(int id) { var cohort = CohortRepository.GetCohort(id); return(View(cohort)); }