예제 #1
0
        public async Task <AdministrationIndexStatisticViewModel> GetAdministrationIndexStatisticViewModel()
        {
            var allUsersCount = await usersService.GetCountOfAllUsersAsync();

            var allAdsCount = await adsService.GetAllActiveAdsCountAsync();

            var administrationIndexStatisticViewModel = new AdministrationIndexStatisticViewModel
            {
                AllAdsCount   = allAdsCount,
                AllUsersCount = allUsersCount
            };

            return(administrationIndexStatisticViewModel);
        }