public IActionResult AddInstructorCourse(int insId, Course course) { if (_db.GetInstructorById(insId) != null) { Course newCourse = _db.AddCourse(insId, course); if (newCourse != null) { return(Ok(newCourse)); } return(BadRequest("Error Adding")); } return(BadRequest("Instructor Not Exist")); }