Exemplo n.º 1
0
 public MealController(IRecipeDAL recipeDAL, IMealPlanDAL mealPlanDAL, IAuthProvider authProvider, IIngredientDAL ingredientDAL)
 {
     this.recipeDAL     = recipeDAL;
     this.mealPlanDAL   = mealPlanDAL;
     this.ingredientDAL = ingredientDAL;
     this.authProvider  = authProvider;
 }
Exemplo n.º 2
0
 public RecipeSqlDAL(string connectionString)
 {
     this.connectionString = connectionString;
     ingredientDAL         = new IngredientSqlDAL(connectionString);
     imgDAL  = new ImageSqlDAL(connectionString);
     stepDAL = new StepSqlDAL(connectionString);
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }