Exemplo n.º 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;
 }
Exemplo 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
            };
        }
Exemplo n.º 3
0
 public CooperationController()
 {
     _cooperationService = new CooperationService();
     _memberService      = new MemberService();
     _imgService         = new ImgService();
 }
Exemplo n.º 4
0
 public CooperationController(ICooperationService cooperationService)
 {
     _cooperationService = cooperationService;
 }