public IActionResult DeleteCourse(string CourseId) { try { return(Ok(courseBll.DeleteCourse(CourseId))); } catch (Exception ex) { return(NotFound(ex.Message)); } }