Exemple #1
0
 public bool Modificar(Producto oProducto)
 {
     db.Entry(oProducto).State = EntityState.Modified;
     return(db.SaveChanges() > 0 ? true : false);
 }
 public bool Modificar(Modelo oModelo)
 {
     db.Entry(oModelo).State = EntityState.Modified;
     return(db.SaveChanges() > 0 ? true : false);
 }
 public bool Modificar(Datos oDatos)
 {
     db.Entry(oDatos).State = EntityState.Modified;
     return(db.SaveChanges() > 0 ? true : false);
 }
 public bool Modificar(Categoria oCategoria)
 {
     db.Entry(oCategoria).State = EntityState.Modified;
     return(db.SaveChanges() > 0 ? true : false);
 }
Exemple #5
0
 public bool Modificar(Venta oVenta)
 {
     db.Entry(oVenta).State = EntityState.Modified;
     return(db.SaveChanges() > 0 ? true : false);
 }
Exemple #6
0
 public bool Modificar(Empleado oEmpledo)
 {
     db.Entry(oEmpledo).State = EntityState.Modified;
     return(db.SaveChanges() > 0 ? true : false);
 }
Exemple #7
0
 public bool Modificar(Cliente oCliente)
 {
     db.Entry(oCliente).State = EntityState.Modified;
     return(db.SaveChanges() > 0 ? true : false);
 }