public HttpResponseMessage CreateInstructorAccount([FromBody] CreateInstructorAccountRequest request) { var response = _service.CreateNewInstructor(request); if (response) { return(Request.CreateResponse <bool>(HttpStatusCode.OK, response)); } else { return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Failed to create new instructor")); } }