Пример #1
0
 public ProductController(IMapper mapper, IWebHostEnvironment env, IConfiguration configuration, DataShopContext dbcontext)
 {
     this._mapper  = mapper;
     _env          = env;
     db            = dbcontext;
     Configuration = configuration;
 }
Пример #2
0
 public ProductController(DataShopContext dbcontext, IMapper mapper, IMailService mailService, IWebHostEnvironment env,
                          IConfiguration conf, IViewRenderService renderService)
 {
     _db                = dbcontext;
     _mapper            = mapper;
     this.mailService   = mailService;
     _env               = env;
     _configuration     = conf;
     _viewRenderService = renderService;
 }
Пример #3
0
 public AccountController(
     UserManager <AppUser> userManager,
     SignInManager <AppUser> signInManager,
     //IEmailSender emailSender,
     //ISmsSender smsSender,
     ILoggerFactory loggerFactory,
     DataShopContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     //_emailSender = emailSender;
     //_smsSender = smsSender;
     _logger  = loggerFactory.CreateLogger <AccountController>();
     _context = context;
 }
Пример #4
0
 public ManageController(
     UserManager <AppUser> userManager,
     SignInManager <AppUser> signInManager,
     //IEmailSender emailSender,
     //ISmsSender smsSender,
     ILoggerFactory loggerFactory, DataShopContext context,
     IMapper mapper)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     //_emailSender = emailSender;
     //_smsSender = smsSender;
     _logger  = loggerFactory.CreateLogger <ManageController>();
     _context = context;
     _mapper  = mapper;
 }
Пример #5
0
 public WarrantyController(IMapper mapper, IConfiguration configuration, DataShopContext dbcontext)
 {
     this._mapper  = mapper;
     db            = dbcontext;
     Configuration = configuration;
 }
Пример #6
0
 public BannerController(IMapper mapper, IConfiguration configuration, DataShopContext dbcontext, IWebHostEnvironment env)
 {
     this._mapper  = mapper;
     db            = dbcontext;
     Configuration = configuration;
 }
Пример #7
0
 public HomeController(ILogger <HomeController> logger, IConfiguration Configuration, DataShopContext dbcontext)
 {
     _logger        = logger;
     _configuration = Configuration;
     _db            = dbcontext;
 }
Пример #8
0
 public CategoryController(DataShopContext dbcontext)
 {
     _db = dbcontext;
 }
 public FooterViewComponent(DataShopContext db)
 {
     _db = db;
 }