public MatchesModelViewFactory(RawFilterValues rawParameters) { db = new FakeDB(); MatchesFiltersValues filterValues = new MatchesFiltersValues(rawParameters); List <Match> matches = db.GetMatches(rawParameters).ToList <Match>(); matchesMV = new MatchesModelView(matches); matchesMV.GridFilters = getAllFilters(rawParameters); matchesMV.SetFilters(filterValues); }