public string SearchForRobotByIndex(int index) { var targetRobots = RobotList.FindAll(x => x.Index == index); return(Utils.RobotListToString(targetRobots)); }
public string SearchForRobotByName(string name) { var targetRobots = RobotList.FindAll(x => x.Model == name); return(Utils.RobotListToString(targetRobots)); }
public string SearchByRobotPriceRange(int min, int max) { var targetRobots = RobotList.FindAll(x => x.Price >= min && x.Price <= max); return(Utils.RobotListToString(targetRobots)); }