Exemplo n.º 1
0
        public IActionResult Delete(int id)
        {
            try
            {
                CheckStatus checkStatus = _manager.Delete(id, 0);

                if (checkStatus.apiEstado.Equals(Status.Error))
                {
                    return(StatusCode(422, checkStatus));
                }
                return(Ok(checkStatus));
            }
            catch (Exception ex)
            {
                _logger.LogError(LoggingEvents.ERROR, ex, ex.Message);
                return(new EmptyResult());
            }
        }