public MainStats MainStats()
 {
     var mainStats = new MainStats
     {
       TourCount = _tourRepo.All.Count(),
       UserCount = _userRepo.All.Count(),
       OrderCount = _orderRepo.All.Count(),
       TotalSales = CalculateTotalSales()
     };
       return mainStats;
 }
Beispiel #2
0
        public MainStats MainStats()
        {
            var mainStats = new MainStats
            {
                TourCount  = _tourRepo.All.Count(),
                UserCount  = _userRepo.All.Count(),
                OrderCount = _orderRepo.All.Count(),
                TotalSales = CalculateTotalSales()
            };

            return(mainStats);
        }