public IHttpActionResult Update([FromBody] Pessoa entity) { try { _application.Update(entity); return(Ok()); } catch (Exception ex) { return(InternalServerError(ex)); } }
public ActionResult Put([FromBody] PessoaRequest request) { var result = _pessoaApplication.Update(request); return(GetResponse(result)); }