Ejemplo n.º 1
0
 public IActionResult LecuresInSection(int sectionId)
 {
     if (sectionId > 0)
     {
         IEnumerable <Lecture> lectures = _db.AllLecturesInSpecificSection(sectionId);
         if (lectures != null)
         {
             return(Ok(lectures));
         }
     }
     return(BadRequest("Something went wrong"));
 }