public void Commit(int campaignId) { var filters = memberSearchFilterRepository.GetByCampaignId(campaignId).Select(msf => msf.ToSearchCriteria()); var filteredMembers = memberService.Search(filters); this.campaignRepository.Commit(campaignId, filteredMembers); }
public IEnumerable <MemberSearchFilter> ForCampaign(int id) { return(_repository.GetByCampaignId(id)); }
public IEnumerable <Member> SearchByCampaignId(int campaignId) { var filters = memberSearchFilterRepository.GetByCampaignId(campaignId).Select(msf => msf.ToSearchCriteria()); return(Search(filters)); }