private void AddView(FoodData data) { EntityView view = data.CreateView(); foodViews.Add(data.id, view as FoodView); }