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

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

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

            return(Utils.RobotListToString(targetRobots));
        }