public IEnumerable <StudentDto> Get() { var students = _db.Students.All().ToList().Select(x => _modelConverter.ConvertTo(x)); return(students); }
public IEnumerable <CourseDto> Get() { var Courses = _db.Courses.All().ToList().Select(x => _modelConverter.ConvertTo(x)); return(Courses); }