public ProductController(ICatalogService service, IImageStorageService imageService, ITopListService topService, IMapper <Product, ProductModel> listMapper, IMapper <Product, EditProductModel> editMapper)
 {
     this.service      = service;
     this.imageService = imageService;
     this.topService   = topService;
     this.listMapper   = listMapper;
     this.editMapper   = editMapper;
 }
 public ProductController(ICatalogService service, IImageStorageService imageService, ITopListService topService, IMapper<Product, ProductModel> listMapper, IMapper<Product, EditProductModel> editMapper)
 {
     this.service = service;
     this.imageService = imageService;
     this.topService = topService;
     this.listMapper = listMapper;
     this.editMapper = editMapper;
 }
Example #3
0
 public HomeController(ICatalogService service, ITopListService topService, IMapper <Product, ProductModel> mapper)
 {
     this.service    = service;
     this.topService = topService;
     this.mapper     = mapper;
 }
 public HomeController(ICatalogService service, ITopListService topService, IMapper<Product, ProductModel> mapper)
 {
     this.service = service;
     this.topService = topService;
     this.mapper = mapper;
 }