Пример #1
0
        public IEnumerable <WorkerViewModel> GetSubordinates(int id)
        {
            var subordinates = _workerRepository.GetSubordinates(id);

            return(_mapper.Map <List <Worker>, List <WorkerViewModel> >(subordinates));
        }