public AdminController(ICocktailRepository cocktailRepo, ICocktailIngredientRepository ciRepo, IIngredientRepository ingredientRepo, IRecipeRespository recipeRepo) { _cocktailRepo = cocktailRepo; _ingredientRepo = ingredientRepo; _ciRepo = ciRepo; _recipeRepo = recipeRepo; }
public static IRecipeRespository GetRecipeRepo() { if (_recipeRepo == null) { if (GetMode() != "Mock") { _recipeRepo = new RecipeSqlRespository(); } //otherwise get another repo based on the mode } return(_recipeRepo); }
public static IRecipeRespository GetRecipeRepo() { if (_recipeRepo == null) { if (GetMode() != "Mock") { _recipeRepo = new RecipeSqlRespository(); } //otherwise get another repo based on the mode } return _recipeRepo; }