public HttpResponseMessage Update(ClientViewModel model) { try { model.IsValid(); _clientAppService.Update(model); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message)); } }