public IEnumerable <LiquidacaoDespesaEvento> Fetch(LiquidacaoDespesaEvento entity) { return(DataHelper.List <LiquidacaoDespesaEvento>("PR_SUBEMPENHO_CANCELAMENTO_EVENTO_CONSULTAR", new SqlParameter("@id_subempenho_cancelamento_evento", entity.Id), new SqlParameter("@tb_subempenho_cancelamento_id_subempenho_cancelamento", entity.SubempenhoId) )); }
public int Add(LiquidacaoDespesaEvento entity) { return(DataHelper.Get <int>("PR_SUBEMPENHO_CANCELAMENTO_EVENTO_INCLUIR", new SqlParameter("@tb_subempenho_cancelamento_id_subempenho_cancelamento", entity.SubempenhoId), new SqlParameter("@cd_fonte", entity.Fonte), new SqlParameter("@cd_evento", entity.NumeroEvento), new SqlParameter("@cd_classificacao", entity.Classificacao), new SqlParameter("@ds_inscricao", entity.InscricaoEvento), new SqlParameter("@vl_evento", entity.ValorUnitario) )); }
public AcaoEfetuada Alterar(LiquidacaoDespesaEvento entity, int resource, short action) { try { _repository.Edit(entity); return(AcaoEfetuada.Sucesso); } catch (Exception ex) { throw SaveLog(ex, actionId: action, functionalityId: resource); } }
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); } }
public IEnumerable <LiquidacaoDespesaEvento> Buscar(LiquidacaoDespesaEvento entity) { return(_repository.Fetch(entity)); }