Ejemplo n.º 1
0
        public IActionResult DeleteCashflowType([FromRoute] int id)
        {
            try
            {
                VerifyUser();

                _service.DeleteBudgetCashflowType(id);

                return(NoContent());
            }
            catch (Exception e)
            {
                var result =
                    new ResultFormatter(ApiVersion, General.INTERNAL_ERROR_STATUS_CODE, e.Message)
                    .Fail();
                return(StatusCode(General.INTERNAL_ERROR_STATUS_CODE, result));
            }
        }