示例#1
0
        public void Delete(int id_orden)
        {
            Producto_Orden po = new Producto_Orden();

            po.Delete(id_orden);
            this.LoadByPrimaryKey(id_orden);
            this.MarkAsDeleted();
            this.Save();
        }
示例#2
0
        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);
        }