public void DeleteTest()
        {
            VerifyExists();
            long id    = Shops.GetId(_databasePath, _shopsName, out _errOut);
            bool value = Shops.Delete(_databasePath, id, out _errOut);

            General.HasTrueValue(value, _errOut);
        }
Ejemplo n.º 2
0
        public void DeleteOrder(int id)
        {
            var order = Orders.GetById(id);

            Addresses.Delete(order.ClientData.Address);
            Addresses.Delete(order.ShopData.Address);
            Goods.Delete(order.GoodsData);
            Clients.Delete(order.ClientData);
            Shops.Delete(order.ShopData);
            Orders.Delete(order);
        }