Esempio n. 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);
        }
Esempio n. 3
0
        public ActionResult <ICollection <CourseDto> > GetAll()
        {
            var courses = _courseLogic.GetAll();

            return(Ok(courses));
        }