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")); }