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); }