예제 #1
0
        public IActionResult Get(int id)
        {
            try
            {
                UsuarioIndOutput data = (UsuarioIndOutput)_manager.SingleById(id, 0);

                if (data.apiEstado.Equals(Status.Error))
                {
                    return(NotFound(data));
                }
                return(Ok(data));
            }

            catch (Exception ex)
            {
                _logger.LogError(LoggingEvents.SERVICE_ERROR, ex, ex.Message);
                return(new EmptyResult());
            }
        }