Example #1
0
        internal async Task <bool> RemoveProduct(long productId)
        {
            bool result = await DBService.DeleteProduct(productId).ConfigureAwait(false);

            if (result)
            {
                purchaseHistory.Remove(new Purchase {
                    Id = productId
                });
            }
            return(result);
        }