public HttpResponseMessage Salvar([FromBody] FornecedorModel model) { return(ExecuteFunction(() => { if (ModelState.IsValid) { var result = service.Salvar(model); return Request.CreateResponse(HttpStatusCode.OK, result); } else { return ModelInvalidResponse(); } })); }