public async Task <IActionResult> GetAll() { List <Course> courses = _courseLogic.GetAll(); return(Ok(courses)); }
public ICollection <CourseDto> GetAll() { var courses = _courseLogic.GetAll(); return(courses); }
public ActionResult <ICollection <CourseDto> > GetAll() { var courses = _courseLogic.GetAll(); return(Ok(courses)); }