public IEnumerable <TeacherDTO> GetTeachers()
 {
     return(service.GetTeachers());
 }
Ejemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            var teachers = teachersService.GetTeachers(id);

            return(View(mapper.Map <TeachersViewModel>(teachers)));
        }