예제 #1
0
        public virtual IEnumerable <User> GetUsers(IEnumerable <Data.Entities.User> userEntities)
        {
            var users = userEntities.Select(x => _autoMapper.Map <User>(x)).ToList();

            users.ForEach(x => _userLinkService.AddSelfLink(x));

            return(users);
        }
        public void AddLinks(TaskUsersInquiryResponse inquiryResponse)
        {
            var taskDetailLink = _taskLinkService.GetSelfLink(inquiryResponse.TaskId);

            taskDetailLink.Rel = "Task";
            inquiryResponse.AddLink(taskDetailLink);

            inquiryResponse.Users.ForEach(x => _userLinkService.AddSelfLink(x));
        }
예제 #3
0
 public void AddLinksToChildObjects(Task task)
 {
     task.Assignees.ForEach(x => _userLinkService.AddSelfLink(x));
 }