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