Пример #1
0
        public async Task <IActionResult> GetAll()
        {
            List <Course> courses = _courseLogic.GetAll();

            return(Ok(courses));
        }
        public ICollection <CourseDto> GetAll()
        {
            var courses = _courseLogic.GetAll();

            return(courses);
        }
Пример #3
0
        public ActionResult <ICollection <CourseDto> > GetAll()
        {
            var courses = _courseLogic.GetAll();

            return(Ok(courses));
        }