// GET: Cohorts/Details/5
        public ActionResult Details(int id)
        {
            //encapsulation StudentRepository.GetStudent
            var cohort = CohortRepository.GetCohort(id);

            return(View(cohort));
        }
Exemple #2
0
        // GET: Students/Details/5
        public ActionResult Details(int id)
        {
            var cohort = CohortRepository.GetCohort(id);

            return(View(cohort));
        }
Exemple #3
0
        // 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));
        }