public async Task <List <Scheme> > GetFilteredSchemes(Filter filter)
        {
            var allSchemes = await _dao.GetSchemes();

            var schemes = allSchemes.Where(m => filter.Editions.Any(e => m.Edition == e)).ToList();

            return(schemes);
        }
Exemple #2
0
 public List <Scheme> GetSchemes()
 {
     return(_dao.GetSchemes());
 }