public static void ReturnRestById(int id) { /*if (rest == null) * { * //Serializer.SetList(); * }*/ singleRest = PrintRestaurant.PrintRestaurantById(rest, id); Console.WriteLine(singleRest.ToString()); }
public static void returnRestById(int id) { /*if (rest == null) * { * //Serializer.SetList(); * }*/ newList = PrintRestaurant.PrintRestaurantById(rest, id); foreach (var restList in newList) { Console.WriteLine(restList.ToString()); } }
public static Restaurant GetRestById(int id) { return(PrintRestaurant.PrintRestaurantById(rest, id)); }