public async Task <IHttpActionResult> GetAllAsync()
        {
            var courses = await _lectureService.GetAllAsync();

            if (courses == null)
            {
                return(NotFound());
            }

            return(Ok(courses));
        }
Esempio n. 2
0
 public async Task <IEnumerable <LectureDTO> > Get()
 {
     return(await _db.GetAllAsync());
 }