Пример #1
0
        public CustomerViewModel GetStatistics()
        {
            _logger.LogInformation($"Fetching statistics");

            var model = new CustomerViewModel
            {
                CountOfAccounts  = _customerInfo.CountOfAllAcounts(),
                CountOfCustomers = _customerInfo.CountOfAllCustomers(),
                TotalBalance     = _customerInfo.SumOfAccounts()
            };

            return(model);
        }