コード例 #1
0
        public async Task <DashboardResponse> GetDashboardData()
        {
            var dashboardResponse = new DashboardResponse();
            var companies         = sqlProvider.GetCompaniesAsync();
            var departments       = sqlProvider.GetDepartmentsAsync();
            var employees         = sqlProvider.GetEmployeesAsync();

            dashboardResponse.Companies   = await companies;
            dashboardResponse.Departments = await departments;
            dashboardResponse.Employees   = await employees;

            return(dashboardResponse);
        }