public IActionResult DeleteCourseEnrollment(int crsId, int stdId) { IEnumerable <Course> courses = _db.DeleteCourseEnrollment(crsId, stdId); if (courses != null) { return(Ok(courses)); } return(BadRequest("Something went wrong")); }