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)); }
public void AddLinksToChildObjects(Task task) { task.Assignees.ForEach(x => _userLinkService.AddSelfLink(x)); }