Ejemplo n.º 1
0
        private static async Task <bool> LoadProducts()
        {
            try
            {
                var products = await ProductContext.LoadStockProducts().ConfigureAwait(false);

                products.ForEach(x => SetProduct(x));

                return(true);
            }
            catch (Exception exception)
            {
                // Log exception
                throw;
            }
        }