Skip to content

Commit

Permalink
- added extra properties to the guest family controller for Family Ma…
Browse files Browse the repository at this point in the history
…nager
  • Loading branch information
jonedmiston committed Jul 29, 2015
1 parent e034f0a commit 6d0ea9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Rock.Rest/Controllers/GroupsController.Partial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ public IQueryable<GuestFamily> GetGuestsForFamily(int groupId)
guestFamilyMember.LastName = familyMember.Person.LastName;
guestFamilyMember.PhotoUrl = familyMember.Person.PhotoUrl;
guestFamilyMember.CanCheckin = guests.Contains(familyMember.PersonId);
guestFamilyMember.Role = familyMember.GroupRole.Name;
guestFamilyMember.Age = familyMember.Person.Age;

guestFamily.FamilyMembers.Add(guestFamilyMember);
}
Expand Down Expand Up @@ -800,6 +802,10 @@ public class GuestFamilyMember
public string PhotoUrl { get; set; }

public bool CanCheckin { get; set; }

public int? Age { get; set; }

public string Role { get; set; }
}

/// <summary>
Expand Down

0 comments on commit 6d0ea9a

Please sign in to comment.