public IngredientController( IIngredientService service, IIngredientMapper mapper, IRepositoryAdvanced <IngredientType> ingredientTypeRepository) { this.mapper = mapper; this.service = service; this.ingredientTypeRepository = ingredientTypeRepository; }
public RecipeController( IRecipeMapper mapper, IRecipeService service, ITypeHandler typeHandler, IRepositoryAdvanced <Ingredient> ingredientRepository) { this.mapper = mapper; this.service = service; this.typeHandler = typeHandler; this.ingredientRepository = ingredientRepository; }
public TypeHandler( IRepositoryAdvanced <CookingType> cookingTypeRepository, IRepositoryAdvanced <DishType> dishTypeRepository, IRepositoryAdvanced <IngredientType> ingredientTypeRepository, IRepositoryAdvanced <RecipeType> recipeTypeRepository) { this.cookingTypeRepository = cookingTypeRepository; this.dishTypeRepository = dishTypeRepository; this.ingredientTypeRepository = ingredientTypeRepository; this.recipeTypeRepository = recipeTypeRepository; }
// ЗДЕСЬ НУЖНО ИСПОЛЬЗОВАТЬ AJAX, ТК ОПЕРАЦИИ НЕЗНАЧИТЕЛЬНЫЕ и могут пригодиться при редактировании / создании public TypesController( IRepositoryAdvanced <RecipeType> recipeTypeRepository, IRepositoryAdvanced <CookingType> cookingTypeRepository, IRepositoryAdvanced <IngredientType> ingredientTypeRepository, IRepositoryAdvanced <DishType> dishTypeRepository, ITypeMapper mapper) { this.mapper = mapper; this.recipeTypeRepository = recipeTypeRepository; this.cookingTypeRepository = cookingTypeRepository; this.dishTypeRepository = dishTypeRepository; this.ingredientTypeRepository = ingredientTypeRepository; }
public IngredientService(IRepositoryAdvanced <Ingredient> repository) { this.repository = repository; }
public RecipeService(IRepositoryAdvanced <Recipe> repository) { this.repository = repository; }