Esempio n. 1
0
        public string SearchForRobotByIndex(int index)
        {
            var targetRobots = RobotList.FindAll(x => x.Index == index);

            return(Utils.RobotListToString(targetRobots));
        }
Esempio n. 2
0
        public string SearchForRobotByName(string name)
        {
            var targetRobots = RobotList.FindAll(x => x.Model == name);

            return(Utils.RobotListToString(targetRobots));
        }
Esempio n. 3
0
        public string SearchByRobotPriceRange(int min, int max)
        {
            var targetRobots = RobotList.FindAll(x => x.Price >= min && x.Price <= max);

            return(Utils.RobotListToString(targetRobots));
        }