Exemple #1
0
 public void guardaAdjunto()
 {
     try
     {
         var context = new SIGHUContext();
         context.Entry(this).State = System.Data.Entity.EntityState.Added;
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #2
0
 public void editarGrupo()
 {
     try
     {
         using (var context = new SIGHUContext())
         {
             context.Entry(this).State = System.Data.Entity.EntityState.Modified;
             context.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Exemple #3
0
 public void ingresaVehiculo()
 {
     try
     {
         using (var context = new SIGHUContext())
         {
             context.Entry(this).State = System.Data.Entity.EntityState.Added;
             context.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }