public int SalvarOuAlterar(LiquidacaoDespesaEvento entity, int resource, short action)
        {
            try
            {
                entity.Id = _repository.Save(entity);

                if (resource > 0)
                {
                    LogSucesso(action, resource, $"SubempenhoEvento {entity.Id}, Subempenho {entity.SubempenhoId}");
                }

                return(entity.Id);
            }
            catch (Exception ex)
            {
                throw SaveLog(ex, action, resource);
            }
        }