public void RemoveShopLot(ShopLot lot) { if (!MyDb.RemoveData(lot.Name, "ShopLot")) { throw new ArgumentException("Goods is not exists"); } }
public void RemoveAccount(Account account) { if (!MyDb.RemoveData(account.Name, "Account")) { throw new ArgumentException("Account is not exists", "account"); } }