コード例 #1
0
        public LocationRecipeViewModel(int locationId)
        {
            this.locatioId = locationId;
            locationAPI    = new LocationAPI();
            var recipes = locationAPI.GetRecipes(locationId).Select(x => new Model.Recipe()
            {
                Name = x.Name,
                Id   = x.Id
            });

            Recipes = new ObservableCollection <Model.Recipe>(recipes);
        }