public MainViewModel(IRecipeLogic data, INutritionCalculator nutritionCalculator, IRecipeCategoryLogic categoryLogic,CategoriesViewModel categoriesViewModel )//RecipesListViewModel recipesListViewModel { this.data = data; this.categoryLogic = categoryLogic; this.nutritionCalculator = nutritionCalculator; this.CurrentPageViewModel = categoriesViewModel; }
public CurrentCategoryRecipeViewModel(IRecipeLogic data, IRecipeCategoryLogic recipeCategoryLogic, Guid selectedid) : this(data, recipeCategoryLogic) { this.data = data; this.recipeCategoryData = recipeCategoryLogic; this.SelectedId = selectedid; this.SelectedCategory = recipeCategoryLogic.GetCategory(selectedid); }
public FilterRecipesModel(IRecipeLogic recipeLogic, IRecipeApi recipeApi) { this.recipeLogic = recipeLogic; this.recipeApi = recipeApi; }
public IndexModel(IRecipeLogic recipeLogic, IRecipeApi recipeApi) { this.recipeLogic = recipeLogic; this.recipeApi = recipeApi; }
public RecipeController(IRecipeLogic recipeLogic) { this.recipeLogic = recipeLogic; }
public CurrentCategoryRecipeViewModel(IRecipeLogic data, IRecipeCategoryLogic recipeCategoryLogic) { this.data = data; this.recipeCategoryData = recipeCategoryLogic; }