Exemple #1
0
        //Gets Data of All EmployeeTasks
        private async Task <IEnumerable <EmployeeTasksViewModel> > GetEmployeeTasksDataToViewModel()
        {
            var employeeTasksList = await this.employeeTaskService.GetEmployeeTasks();

            var employeesList = await this.employeeService.GetEmployees();

            var workItemsList = await this.workItemService.GetWorkItems();

            IEnumerable <EmployeeTasksViewModel> employeeTask = _objectMapper.EmployeeTasksDTOObjectsToViewModel(employeeTasksList, employeesList, workItemsList);

            return(employeeTask);
        }