コード例 #1
0
 private async Task<List<PersonAllin>> GetPersonInvolve(int authorType,string authorId)
 {
     IEnumerable<PersonAllin> people = null;
     if (authorType == (int)my8Enum.AuthorType.Person)
     {
         people = await m_PersonRepository.GetFriends(authorId);
         return people.ToList();
     }
     if (authorType == (int)my8Enum.AuthorType.Page)
     {
         people = await m_PageRepository.GetPersonFollow(authorId);
         return people.ToList();
     }
     if (authorType == (int)my8Enum.AuthorType.Community)
     {
         people = await m_CommunityRepository.GetMembers(authorId);
         return people.ToList();
     }
     return null;
 }
コード例 #2
0
        public async Task <List <PersonAllin> > GetMembers(string CommunityId)
        {
            IEnumerable <PersonAllin> lstPerson = await m_CommunityRepositoryN.GetMembers(CommunityId);

            return(lstPerson.ToList());
        }