public ExchangeController(IExchangeService exchangeService, ILogisticService logisticService, IExchangeClassService exchangeClassService, IExchangeExamineService exchangeExamineService) { this._exchangeService = exchangeService; this._logisticService = logisticService; this._exchangeClassService = exchangeClassService; this._exchangeExamineService = exchangeExamineService; }
public StartController() { _memberService = new MemberService(); _slideService = new SlideService(); _exchangeService = new ExchangeService(); _imgService = new ImgService(); _cooperationService = new CooperationService(); _lotteryService = new LotteryService(); _exchangeExamineService = new ExchangeExamineService(); UserManager = new UserManager <ApplicationUser>(new UserStore <ApplicationUser>(new ApplicationDbContext())); UserManager.UserValidator = new UserValidator <ApplicationUser>(UserManager) { AllowOnlyAlphanumericUserNames = false }; }
/// <summary> /// /// </summary> /// <param name="dbContext"></param> public ExchangeExamineController(CosDbContext dbContext) { _exchangeExamineService = new ExchangeExamineService(dbContext); }