public IEnumerable <Endereco> BuscarEnderecos() { using (var context = new IBEntitiesModel()) { return(context.Enderecos.ToList()); } }
public IEnumerable <Pacote> BusacarPacotes() { using (var context = new IBEntitiesModel()) { return(context.Pacotes.ToList()); } }
public IEnumerable <Agencia> BuscarAgencias() { using (var context = new IBEntitiesModel()) { return(context.Agencias.ToList()); } }
public IEnumerable <Cliente> BuscarCliente() { using (var context = new IBEntitiesModel()) { return(context.Clientes.ToList()); } }
public IEnumerable <Lancamento> BuscarLancamentos() { using (var context = new IBEntitiesModel()) { return(context.Lancamentos.ToList()); } }
public IEnumerable <Conta> BuscarContas() { using (var context = new IBEntitiesModel()) { //List<Conta> lista = new List<Conta>(); return(context.Contas.ToList()); } }
public bool IncluirConta(Conta conta) { try { using (var context = new IBEntitiesModel()) { context.Contas.Add(conta); context.SaveChanges(); return(true); } } catch (Exception) { return(false); } }
public bool IncluirEndereco(Endereco endereco) { try { using (var context = new IBEntitiesModel()) { context.Enderecos.Add(endereco); context.SaveChanges(); return(true); } } catch (Exception) { return(false); } }
public bool IncluirPacote(Pacote pacote) { try { using (var context = new IBEntitiesModel()) { context.Pacotes.Add(pacote); context.SaveChanges(); return(true); } } catch (Exception) { return(false); } }
public bool IncluirAgencia(Agencia agencia) { try { using (var context = new IBEntitiesModel()) { context.Agencias.Add(agencia); context.SaveChanges(); return(true); } } catch (Exception) { return(false); } }
public bool IncluirLancamento(Lancamento lancamento) { try { using (var context = new IBEntitiesModel()) { context.Lancamentos.Add(lancamento); context.SaveChanges(); return(true); } } catch (Exception) { return(false); } }