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> GetAllCompletedOrders() { var orders = await _summariesLogic.GetCompletedSummaries(); return(PartialView("SummariesBlockView", orders)); }