// Delete selected Menu Order private void BtnDelete_Click(object sender, EventArgs e) { if (!uniMetods.DeleteUser()) { Reset(); return; } SelectedOrder.Status = false; FillOrderList(); }
// Delete selected Package private void BtnDelete_Click(object sender, EventArgs e) { if (SelectPackage != null) { if (!uniMetods.DeleteUser()) { Reset(); return; } SelectPackage.Status = false; _context.SaveChanges(); FillPackageList(); } }