Пример #1
0
        /// <summary>
        /// Allows the user to select a list of ski runs based on the vertical value
        /// </summary>
        /// <param name="skiRunRepository"></param>
        private static void QuerySkiRunsByVertical()
        {
            SkiRunBusiness skiRunBusiness = new SkiRunBusiness(skiRunRepository);

            int[] minMaxValues = ConsoleView.DisplayGetSkiRunQuery();
            using (skiRunBusiness)
            {
                List <SkiRun> results = skiRunBusiness.QueryByVertical(minMaxValues[0], minMaxValues[1]);
                ConsoleView.DisplayQueryResults(results);
            }

            ConsoleView.DisplayContinuePrompt();
        }