public HttpResponseMessage UpdateInstructorData([FromBody] UpdateInstructorDataRequest request) { var response = _service.UpdateInstructor(request); if (response) { return(Request.CreateResponse <bool>(HttpStatusCode.OK, response)); } else { return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Failed to update instructor data")); } }