Exemple #1
0
 public MemberController(IMemberService memberService, ILoginCodeService loginCodeService, IExchangeService exchangeService, IRechargeRecordService rechargeRecordService,
                         ICooperationService cooperationService, IRefundService refundService, ICosFileStatService cosFileStatService)
 {
     _memberService         = memberService;
     _loginCodeService      = loginCodeService;
     _exchangeService       = exchangeService;
     _rechargeRecordService = rechargeRecordService;
     _cooperationService    = cooperationService;
     _refundService         = refundService;
     _cosFileStatService    = cosFileStatService;
 }
Exemple #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
            };
        }
 public CooperationController()
 {
     _cooperationService = new CooperationService();
     _memberService      = new MemberService();
     _imgService         = new ImgService();
 }
Exemple #4
0
 public CooperationController(ICooperationService cooperationService)
 {
     _cooperationService = cooperationService;
 }