Exemplo n.º 1
0
 public void Novo(Correntista registro)
 {
     try
     {
         using (var db = new terminalEntities())
         {
             db.Correntistas.Add(registro);
             db.SaveChanges();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public void Excluir(Correntista registro)
 {
     try
     {
         using (var db = new terminalEntities())
         {
             db.Entry(registro).State = System.Data.Entity.EntityState.Deleted;
             db.SaveChanges();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
 public void Salvar(Conta registro)
 {
     try
     {
         using (var db = new terminalEntities())
         {
             db.Entry(registro).State = System.Data.Entity.EntityState.Modified;
             db.SaveChanges();
         }
     }
     catch (Exception)
     {
         throw;
     }
 }