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; }
public async Task <List <PersonAllin> > GetMembers(string CommunityId) { IEnumerable <PersonAllin> lstPerson = await m_CommunityRepositoryN.GetMembers(CommunityId); return(lstPerson.ToList()); }