public Restaurant AddRestaurant(Restaurant restaurant) { restaurant.Id = Restaurants.Max(r => r.Id) + 1; Restaurants.Add(restaurant); return(restaurant); }
public Restaurant AddRestaurant(Restaurant restaurant) { restaurant.Id = Restaurants.Max(r => r.Id) + 1; Restaurants.Add(restaurant); return(restaurant); }