예제 #1
0
        public async Task <TaskCollection> GetTasksByEmployeeId(int Id)
        {
            var results = await _employeetaskRepository.GetTasksByEmployeeId(Id);

            TaskCollection conResults = new TaskCollection();

            conResults.Tasks = _mapper.Map <List <TaskDto> >(results);
            //conResults.Tasks.ToList().ForEach(c => c.);
            return(conResults);
        }