Ejemplo n.º 1
0
 public ExchangeController(IExchangeService exchangeService, ILogisticService logisticService, IExchangeClassService exchangeClassService, IExchangeExamineService exchangeExamineService)
 {
     this._exchangeService        = exchangeService;
     this._logisticService        = logisticService;
     this._exchangeClassService   = exchangeClassService;
     this._exchangeExamineService = exchangeExamineService;
 }
Ejemplo n.º 2
0
        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
            };
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dbContext"></param>
 public ExchangeExamineController(CosDbContext dbContext)
 {
     _exchangeExamineService = new ExchangeExamineService(dbContext);
 }