public ParticipantFullWrapper(ParticipantFull participant)
 {
     Project = new ProjectWrapper(participant.Project);
     Participant = EmployeeWraper.Get(participant.ID);
     Created = participant.Created;
     Updated = participant.Updated;
     Removed = participant.Removed;
 }
 public static bool CanGoToFeed(ParticipantFull participant, Guid userId)
 {
     if (participant == null || !IsProjectsEnabled(userId))
     {
         return false;
     }
     return IsInTeam(participant.Project, userId, false) || IsFollow(participant.Project, userId);
 }
 private Feed ToFeed(ParticipantFull participant)
 {
     var projectUrl = "/products/projects/tasks.aspx?prjID=" + participant.Project.ID;
     var feed = new Feed(participant.ID, participant.Created)
         {
             Item = item,
             ItemId = string.Format("{0}_{1}", participant.ID, participant.Project.ID),
             ItemUrl = CommonLinkUtility.ToAbsolute(projectUrl),
             Product = Product,
             Module = Name,
             Title = participant.Project.Title,
             ExtraLocation = participant.Project.Title,
             ExtraLocationUrl = CommonLinkUtility.ToAbsolute(projectUrl),
             HasPreview = false,
             CanComment = false,
             GroupId = GetGroupId(item, Guid.Empty, participant.Project.ID.ToString(CultureInfo.InvariantCulture))
         };
     feed.Keywords = feed.Author.DisplayName;
     return feed;
 }
 private Feed ToFeed(ParticipantFull participant)
 {
     var itemUrl = "/products/projects/tasks.aspx?prjID=" + participant.Project.ID;
     var feed = new Feed(participant.ID, participant.Created)
         {
             Item = item,
             ItemId = string.Format("{0}_{1}", participant.ID, participant.Project.ID),
             ItemUrl = CommonLinkUtility.ToAbsolute(itemUrl),
             Product = Product,
             Module = Name,
             Title = participant.Project.Title,
             HasPreview = false,
             CanComment = false,
             GroupId = string.Format("{0}_{1}_{2}", item, participant.Project.ID, participant.ID)
         };
     feed.Keywords = feed.Author.DisplayName;
     return feed;
 }