Example #1
0
        public IHttpActionResult Update([FromBody] Pessoa entity)
        {
            try
            {
                _application.Update(entity);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(InternalServerError(ex));
            }
        }
Example #2
0
        public ActionResult Put([FromBody] PessoaRequest request)
        {
            var result = _pessoaApplication.Update(request);

            return(GetResponse(result));
        }