public CustomAuthorizeAttribute()
        {
            var unitOfWork = new EFUnitOfWork();

            _UserService = new AspNetUsersService(unitOfWork);
            _MenuService = new MenuSideListService(unitOfWork);
        }
        public HomeController()
        {
            var unitOfWork = new EFUnitOfWork();

            _UserService = new AspNetUsersService(unitOfWork);
            _menuSide    = new MenuSideListService(unitOfWork);
        }
Example #3
0
        //private ReturnMsg _ReturnMsg;

        public SystemController()
        {
            var unitOfWork = new EFUnitOfWork();

            _UserService   = new AspNetUsersService(unitOfWork);
            _MemberService = new MemberService(unitOfWork);
            _logSvc        = new LoggingService(unitOfWork);
            _menuSide      = new MenuSideListService(unitOfWork);
            _publicService = new PublicService();
            // _ReturnMsg = new ReturnMsg();
            _actionName     = ""; // this.ControllerContext.RouteData.Values["action"].ToString();
            _controllerName = ""; // this.ControllerContext.RouteData.Values["controller"].ToString();
        }
        public AccountController()
        {
            var unitOfWork = new EFUnitOfWork();

            _menuSideservice = new MenuSideListService(unitOfWork);
        }