Ejemplo n.º 1
0
 public IngredientController(
     IIngredientService service,
     IIngredientMapper mapper,
     IRepositoryAdvanced <IngredientType> ingredientTypeRepository)
 {
     this.mapper  = mapper;
     this.service = service;
     this.ingredientTypeRepository = ingredientTypeRepository;
 }
Ejemplo n.º 2
0
 public RecipeController(
     IRecipeMapper mapper,
     IRecipeService service,
     ITypeHandler typeHandler,
     IRepositoryAdvanced <Ingredient> ingredientRepository)
 {
     this.mapper               = mapper;
     this.service              = service;
     this.typeHandler          = typeHandler;
     this.ingredientRepository = ingredientRepository;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 // ЗДЕСЬ НУЖНО ИСПОЛЬЗОВАТЬ 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;
 }
Ejemplo n.º 5
0
 public IngredientService(IRepositoryAdvanced <Ingredient> repository)
 {
     this.repository = repository;
 }
Ejemplo n.º 6
0
 public RecipeService(IRepositoryAdvanced <Recipe> repository)
 {
     this.repository = repository;
 }