public void Delete(int id_orden) { Producto_Orden po = new Producto_Orden(); po.Delete(id_orden); this.LoadByPrimaryKey(id_orden); this.MarkAsDeleted(); this.Save(); }
public bool Delete(int id_producto) { Producto_Orden po = new Producto_Orden(); if (po.IsProductFree(id_producto)) { this.LoadByPrimaryKey(id_producto); if (this.RowCount > 0) { MarkAsDeleted(); Save(); return(true); } } return(false); }