Example #1
0
 public void Agregar(FacturaIngreso facturaIngreso)
 {
     try
     {
         using (DB_ConstruccionesEntities contexto = new DB_ConstruccionesEntities())
         {
             contexto.FacturaIngreso.Add(facturaIngreso);
             contexto.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public void AgregarUsuario(usuarios usuario)
 {
     try
     {
         using (DB_ConstruccionesEntities contexto = new DB_ConstruccionesEntities())
         {
             contexto.usuarios.Add(usuario);
             contexto.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 public void Agregar(ventanas ventanas)
 {
     try
     {
         using (DB_ConstruccionesEntities contexto = new DB_ConstruccionesEntities())
         {
             contexto.ventanas.Add(ventanas);
             contexto.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }