示例#1
0
 public MealsController(IMealServices mealServices, IUserServices userServices, IProductServices productServices, IIngredientServices ingredientServices)
 {
     _mealServices       = mealServices;
     _userServices       = userServices;
     _productServices    = productServices;
     _ingredientServices = ingredientServices;
 }
 public CocktailsController(ICocktailReviewServices cocktailReview, ICocktailServices cocktailServices, IIngredientServices ingredientServices, IHostingEnvironment hostingEnvironment)
 {
     this.cocktailReview     = cocktailReview;
     this.cocktailServices   = cocktailServices;
     this.ingredientServices = ingredientServices;
     this.hostingEnvironment = hostingEnvironment;
 }
 public CocktailController(ICocktailServices cocktailServices, IIngredientServices ingredientServices, IToastNotification toast, ICocktailCommentServices cocktailCommentServices)
 {
     this.cocktailServices   = cocktailServices;
     this.ingredientServices = ingredientServices;
     this.toast = toast;
     this.cocktailCommentServices = cocktailCommentServices;
 }
 public CocktailController(ICocktailServices cocktailServices, IIngredientServices ingredientServices, IUploadImagesServices uploadImagesServices,
                           IToastNotification toast)
 {
     this.cocktailServices     = cocktailServices;
     this.ingredientServices   = ingredientServices;
     this.uploadImagesServices = uploadImagesServices;
     this.toast = toast;
 }
示例#5
0
 public CocktailsController(IIngredientServices ingredientServices, ICocktailServices cocktailServices, ICocktailIngredientServices cocktailIngredientsServices, IBarCocktailServices barCocktailServices, IBarServices barServices)
 {
     _ingredientServices          = ingredientServices;
     _cocktailServices            = cocktailServices;
     _cocktailIngredientsServices = cocktailIngredientsServices;
     _barCocktailServices         = barCocktailServices;
     _barServices = barServices;
 }
 public CocktailsController(ICocktailServices cocktailServices,
                            IIngredientServices ingredientServices,
                            IToastNotification toast,
                            INotificationServices notificationServices)
 {
     _cocktailServices   = cocktailServices;
     _ingredientServices = ingredientServices;
     _toast = toast;
     _notificationServices = notificationServices;
 }
 public HomeController(ICocktailServices cocktailServices,
                       IBarServices barServices,
                       IIngredientServices ingredientServices,
                       IAppUserServices appUserServices, INotificationServices notificationServices, IToastNotification toast)
 {
     _cocktailServices     = cocktailServices;
     _barServices          = barServices;
     _ingredientServices   = ingredientServices;
     _appUserServices      = appUserServices;
     _notificationServices = notificationServices;
     _toast = toast;
 }
示例#8
0
 public CocktailServices(CMContext context,
                         IFileUploadService fileUploadService,
                         IIngredientServices ingredientServices,
                         IRecipeServices recipeServices)
 {
     _context = context
                ?? throw new MagicException(ExceptionMessages.ContextNull);
     _fileUploadService = fileUploadService
                          ?? throw new MagicException(ExceptionMessages.IFileUploadServiceNull);
     _ingredientServices = ingredientServices
                           ?? throw new MagicException(ExceptionMessages.IIngredientServiceNull);
     _recipeServices = recipeServices
                       ?? throw new MagicException(ExceptionMessages.IRecipeServiceNull);
 }
示例#9
0
 public IngredientController(IIngredientServices ingredientServices)
 {
     IngredientServices = ingredientServices;
 }
示例#10
0
 public IngredientsController(IIngredientServices ingredientServices, IToastNotification toast)
 {
     _ingredientServices = ingredientServices;
     _toast = toast;
 }
示例#11
0
 public IngredientsController(IIngredientServices ingredientServices, ICocktailIngredientServices cocktailIngredientServices)
 {
     _ingredientServices         = ingredientServices;
     _cocktailIngredientServices = cocktailIngredientServices;
 }
示例#12
0
 public IngredientsController(IIngredientServices ingredientServices)
 {
     this._ingredientServices = ingredientServices;
 }
 public IngredientController(IIngredientServices ingredientServices, IToastNotification toast)
 {
     this.ingredientServices = ingredientServices;
     this.toast = toast;
 }