Exemplo n.º 1
0
 public virtual HttpResponseMessage UpdateUser([FromBody] UpdateUserModel user)
 {
     if (user == null)
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest, "User was null."));
     }
     if (user.Accounts == null)
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest, "Accounts was null."));
     }
     DataBridge.UpdateUser(user.Name, user.RoleId, user.Accounts);
     return(Request.CreateResponse(HttpStatusCode.OK));
 }