public async Task <IActionResult> DeleteSectionLecture(int crsId, int lectId) { IEnumerable <Lecture> sectionLecture = await _db.DeleteSectionLecture(crsId, lectId); if (sectionLecture != null) { return(Ok(sectionLecture)); } return(BadRequest("Someting went wrong")); }