public ActionResult AddNewCourse([FromBody] Course course) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _COURSEDAL.AddNewCourse(course); return(Ok()); }
public ActionResult AddNewCourse([FromBody] Course course) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _COURSEDAL.AddNewCourse(course); return(Ok()); }