public HttpResponseMessage register([FromBody] User newUser) { try { return(Request.CreateResponse(HttpStatusCode.OK, UserBl.register(newUser))); } catch (Exception ex) { return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex)); } }