示例#1
0
        public async Task <IActionResult> Edit(Guid id, UsuarioEditarCommand modelo)
        {
            var _item = await _usuarioServicio.Editar(id, modelo);

            if (_item.Exitoso == false)
            {
                return(BadRequest(ModelState));
            }

            return(RedirectToAction(nameof(Details), new { id = _item.Result }));
        }