public IActionResult DeleteCourseSection(int crsId, int secId) { IEnumerable <CourseSection> courseSections = _db.DeleteCourseSection(crsId, secId); if (courseSections != null) { return(Ok(courseSections)); } return(BadRequest("Something went wrong")); }