示例#1
0
        public async Task <AdminMenuView> GetAdminMenuView()
        {
            var currentOrders = await _summariesLogic.GetCurrentSummaries();

            var archive = await _summariesLogic.GetCompletedSummaries();

            var discounts = await _servicesLogic.GetAllServicesWithDiscount();

            var settingsView = await GetSettingsView();

            var adminView = new AdminMenuView(discounts, currentOrders, archive, settingsView);

            return(adminView);
        }
        public async Task <ActionResult> GetCurrentOrders()
        {
            var currentOrders = await _summariesLogic.GetCurrentSummaries();

            return(PartialView("SummariesBlockView", currentOrders));
        }