예제 #1
0
        public ActionResult Results(int difficulty, int summits, bool waterfalls, bool streams, bool mountainViews, bool meadows, bool lakes)
        {
            List <Trail> exactMatches         = Trail.GetMatches(difficulty, summits, waterfalls, streams, mountainViews, meadows, lakes);
            List <Trail> partialMatches       = Trail.GetPartialMatches(difficulty, summits, waterfalls, streams, mountainViews, meadows, lakes);
            Dictionary <string, object> model = new Dictionary <string, object> ();

            model.Add("partialMatches", partialMatches);
            model.Add("exactMatches", exactMatches);
            return(View(model));
        }