private void Delete(Guid ProductID) { try { RuleProduct.Delete(ProductID); } catch (Exception ex) { Msg.Err(ex.Message); } }
private void Delete() { try { if (this.Exist) { RuleProduct.Delete(this._Product.ProductID); } else { Msg.Adv("Seleccione un producto para eliminarlo."); } this.Clear(); } catch (Exception ex) { Msg.Err(ex.Message); } }