public async Task <List <DistributionListMember> > GetAllListMembersByListIdAsync(int listId) { var items = await _distributionListMemberRepository.GetDistributionListMemberByListIdAsync(listId); if (items != null && items.Any()) { return(items.ToList()); } return(new List <DistributionListMember>()); }
public async Task <List <DistributionListMember> > GetAllListMembersByListIdAsync(int listId) { var items = await _distributionListMemberRepository.GetDistributionListMemberByListIdAsync(listId); return(items.ToList()); }