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); } }
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); } }
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); } }