public static int find_serves(serves serves) { for (int i = 0; i < serveses.Count; i++) { if (serves.is_compare(serveses[i])) { return(i); } } return(-1); }
public static bool add_serveses(serves serves) { int customer_index = find_serves(serves); if (customer_index != -1) { return(false); } serveses.Add(serves); return(true); }