Exemplo n.º 1
0
        private void DoDisableProducts(DateTime dateTime, string shopId)
        {
            var result = Measure(() => _elasticClient.DisableOldProducts(dateTime, shopId), out var time);

            if (result.IsError)
            {
                _context.AddMessage($"Disabled products {result.Pretty}", result.IsError);
            }
            LogWriter.Log($"{result} товаров распродано", true);
        }