Ejemplo n.º 1
0
 public IHttpActionResult UpdateAccountInformation([FromBody] AccountUpdateDTO viewmodel)
 {
     if (ModelState.IsValid)
     {
         var updated = _accountService.UpdateAccountInformation(viewmodel);
         if (updated != null)
         {
             return(Ok(updated));
         }
         else
         {
             return(BadRequest("Information blev ikke opdateret"));
         }
     }
     return(BadRequest(ModelState));
 }