public IActionResult Put(int id, [FromBody] UsuarioInput input) { try { CheckStatus checkStatus = null; if (ModelState.IsValid) { input.id = id; checkStatus = _manager.Update(input); if (checkStatus.apiEstado.Equals(Status.Error)) { return(StatusCode(422, checkStatus)); } return(Ok(checkStatus)); } else { checkStatus = new CheckStatus(Status.Error, Mensaje.InputInvalido); return(StatusCode(422, checkStatus)); } } catch (Exception ex) { _logger.LogError(LoggingEvents.SERVICE_ERROR, ex, ex.Message); return(new EmptyResult()); } }