Пример #1
0
        public ActionResult ShowCoaches()
        {
            KaratePerson karatePerson = new KaratePerson();;

            ViewBag.CountCoaches = karatePerson.CountPeople(db.Coaches.ToList());
            return(View(db.Coaches.ToList()));
        }
Пример #2
0
        public ActionResult ShowStudents()
        {
            KaratePerson karatePerson = new KaratePerson();

            ViewBag.CountStudents = karatePerson.CountPeople(db.KarateStudents.ToList());
            return(View(db.KarateStudents.ToList()));
        }