Beispiel #1
0
        public int SalvarOuAlterar(LiquidacaoDespesaNota entity, int resource, short action)
        {
            try
            {
                entity.Id = _repository.Save(entity);

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

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