Ejemplo n.º 1
0
        public MemberController()
        {
            _memberService          = new MemberService();
            _rechargeRecordService  = new RechargeRecordService();
            _exchangeService        = new ExchangeService();
            _integralSourceService  = new IntegralSourceService();
            _exchangeExamineService = new ExchangeExamineService();
            _imgService             = new ImgService();
            _cooperationService     = new CooperationService();

            _userId = Com.Cos.Common.Public.GetLoginUid();
            _member = _memberService.Find(_userId);
        }
Ejemplo n.º 2
0
        private readonly Com.Cos.Models.Member _member; //登录的用户

        public ExchangeController()
        {
            _exchangeService        = new ExchangeService();
            _memberService          = new MemberService();
            _exchangeClassService   = new ExchangeClassService();
            _exchangeExamineService = new ExchangeExamineService();
            _imgService             = new ImgService();
            _mailingAddressService  = new MailingAddressService();

            _userId = Com.Cos.Common.Public.GetLoginUid();         //登录的用户id
            _member = _memberService.Find(_userId);                //登录的用户

            ViewBag.Classes  = _exchangeClassService.FindList();   //全部兑换分类
            ViewBag.Examines = _exchangeExamineService.FindList(); //全部兑换状态
        }