public IActionResult Post([FromBody] Course course) { if (course.ValidCourse()) { _dbstore.AddCourse(Course.CourseMapping(course)); return(Ok()); } else { return(BadRequest()); } }