public HttpResponseMessage Post(HttpRequestMessage request, [FromBody] DocumentoContractModel documento) { try { documentoBusiness.Salvar(documento); return(request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { this.log.Error("Falha - documentoBusiness.Salvar :", ex); return(request.CreateResponse(HttpStatusCode.InternalServerError)); } }
public void Post([FromBody] DocumentoContractModel documento) { documentoBusiness.Salvar(documento); }