public ImagesController(CookingSystemDbContext context,
                         IWebHostEnvironment webHostEnvironment,
                         IMapper mapper,
                         IRecipeService recipes,
                         IImageSevice images)
 {
     this.context            = context;
     this.webHostEnvironment = webHostEnvironment;
     this.mapper             = mapper;
     this.recipes            = recipes;
     this.images             = images;
 }
Exemplo n.º 2
0
 public RecipesController(IRecipeService recipes,
                          IMapper mapper, IUserService userService,
                          UserManager <IdentityUser> userManager,
                          ApplicationDbContext context,
                          IWebHostEnvironment webHostEnvironment,
                          CookingSystemDbContext appContext,
                          ICategoryService categories,
                          IImageSevice images,
                          ICommentService comments)
 {
     this.recipes            = recipes;
     this.mapper             = mapper;
     this.userService        = userService;
     this.userManager        = userManager;
     this.context            = context;
     this.webHostEnvironment = webHostEnvironment;
     this.appContext         = appContext;
     this.categories         = categories;
     this.images             = images;
     this.comments           = comments;
 }