public IActionResult AddCourse(Course m) { try{ IEnumerable <Course> list = _courseServices.AddCourse(m); return(Ok()); }catch (Exception) { return(StatusCode(500)); } }
public ActionResult <Course> AddCourse(Course course) { _service.AddCourse(course); return(course); }