public MealController(IRecipeDAL recipeDAL, IMealPlanDAL mealPlanDAL, IAuthProvider authProvider, IIngredientDAL ingredientDAL) { this.recipeDAL = recipeDAL; this.mealPlanDAL = mealPlanDAL; this.ingredientDAL = ingredientDAL; this.authProvider = authProvider; }
public RecipeSqlDAL(string connectionString) { this.connectionString = connectionString; ingredientDAL = new IngredientSqlDAL(connectionString); imgDAL = new ImageSqlDAL(connectionString); stepDAL = new StepSqlDAL(connectionString); }
public HomeController(IRecipeDAL recipeDAL, IUserDAL userDal, IRecipeIngredientDAL recipeIngredientDAL, IIngredientDAL ingredientDAL, IPreparationStepsDAL preparationStepsDAL) { this.recipeDAL = recipeDAL; this.userDAL = userDal; this.recipeIngredientDAL = recipeIngredientDAL; this.ingredientDAL = ingredientDAL; this.preparationStepsDAL = preparationStepsDAL; }
public Ingredient(string name, int diet = 0, IIngredientDAL dal = null) { if (dal != null) { this.ingredientDAL = dal; } else { this.ingredientDAL = IngredientFactory.CreateIIngredientDal(); } this.Name = name; this.Diet = diet; }
public RecipeController(IRecipeDAL recipeDAL, IIngredientDAL ingredientDAL, IAuthProvider authProvider) { this.recipeDAL = recipeDAL; this.ingredientDAL = ingredientDAL; this.authProvider = authProvider; }