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

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

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

            return(Utils.RobotListToString(targetRobots));
        }