예제 #1
0
        public GroupDTO GetGroupDetailsByInvitationGuid(string token, string invitationGuid)
        {
            var invitation = _invitationRepository.GetOpenInvitation(invitationGuid);

            var group  = Mapper.Map <MpGroup, GroupDTO>(_mpGroupRepository.GetSmallGroupDetailsById(invitation.SourceId));
            var groups = new List <GroupDTO> {
                @group
            };

            GetGroupAttributes(token, groups);
            GetGroupParticipants(groups);

            return(groups[0]);
        }