public RecipeService( IDbSet <Recipe> set, IIngredientTypesService ingredientTypesService, IRecipeIngredientsService ingredientsService, IRecipeImagesService recipeImagesService, IRecipeStepsService recipeStepsService, IDbContext context) : base(set, context) { if (ingredientTypesService == null) { throw new ArgumentNullException(); } if (ingredientsService == null) { throw new ArgumentNullException(nameof(ingredientsService)); } if (recipeImagesService == null) { throw new ArgumentNullException(nameof(recipeImagesService)); } if (recipeStepsService == null) { throw new ArgumentNullException(nameof(recipeStepsService)); } this.ingredientTypesService = ingredientTypesService; this.ingredientsService = ingredientsService; this.recipeImagesService = recipeImagesService; this.recipeStepsService = recipeStepsService; }
public RecipesController( IRecipesService recipesService, ICategoriesService categoriesService, IRecipeIngredientsService recipeIngredientsService) { this.recipesService = recipesService; this.categoriesService = categoriesService; this.recipeIngredientsService = recipeIngredientsService; }
public RecipesService( IRepository <Recipe> recipesRepository, ICategoriesService categoriesService, IIngredientsService ingredientsService, IRecipeIngredientsService recipeingredientsService) { this.recipesRepository = recipesRepository; this.categoriesService = categoriesService; this.ingredientsService = ingredientsService; this.recipeingredientsService = recipeingredientsService; }
public RecipesController( IRecipesService recipesService, IRecipeLikesService recipeLikesService, IRecipeIngredientsService recipeIngredientsService, UserManager <ApplicationUser> userManager) { this.recipesService = recipesService; this.recipeLikesService = recipeLikesService; this.recipeIngredientsService = recipeIngredientsService; this.userManager = userManager; }
public RecipesController( IRecipesService recipesService, IUsersService usersService, IRecipeIngredientsService recipeIngredientsService, IRecipeLikesService recipeLikesService, IEmailSender emailSender, UserManager <ApplicationUser> userManager) { this.recipesService = recipesService; this.usersService = usersService; this.recipeIngredientsService = recipeIngredientsService; this.recipeLikesService = recipeLikesService; this.emailSender = emailSender; this.userManager = userManager; }
public RecipeIngredientsController(IRecipeIngredientsService service) { _service = service; }
public IngredientsController(IRecipeIngredientsService recipeIngredientsService) { this.recipeIngredientsService = recipeIngredientsService; }