public ResetRequestController(IResetRequestRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ResetRequestRepository = repository;
        }
        public ResetRequestController(IResetRequestRepository repository, string catalog, LoginView view)
        {
            this._LoginId  = view.LoginId.To <long>();
            this._UserId   = view.UserId.To <int>();
            this._OfficeId = view.OfficeId.To <int>();
            this._Catalog  = catalog;

            this.ResetRequestRepository = repository;
        }
Beispiel #3
0
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.ResetRequestRepository == null)
            {
                this.ResetRequestRepository = new Frapid.Account.DataAccess.ResetRequest
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId  = this.MetaUser.UserId
                };
            }
        }
        public ResetRequestController()
        {
            this._LoginId  = AppUsers.GetCurrent().View.LoginId.To <long>();
            this._UserId   = AppUsers.GetCurrent().View.UserId.To <int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To <int>();
            this._Catalog  = AppUsers.GetCatalog();

            this.ResetRequestRepository = new Frapid.Account.DataAccess.ResetRequest
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId  = this._UserId
            };
        }
        protected override void Initialize(HttpControllerContext context)
        {
            base.Initialize(context);

            if (this.ResetRequestRepository == null)
            {
                this.ResetRequestRepository = new Frapid.Account.DataAccess.ResetRequest
                {
                    _Catalog = this.MetaUser.Catalog,
                    _LoginId = this.MetaUser.LoginId,
                    _UserId = this.MetaUser.UserId
                };
            }
        }
        public ResetRequestController()
        {
            this._LoginId = AppUsers.GetCurrent().View.LoginId.To<long>();
            this._UserId = AppUsers.GetCurrent().View.UserId.To<int>();
            this._OfficeId = AppUsers.GetCurrent().View.OfficeId.To<int>();
            this._Catalog = AppUsers.GetCatalog();

            this.ResetRequestRepository = new Frapid.Account.DataAccess.ResetRequest
            {
                _Catalog = this._Catalog,
                _LoginId = this._LoginId,
                _UserId = this._UserId
            };
        }
Beispiel #7
0
 public UserService(IPendingIdentityRepository pendingIdentityRepository, IIdentityRepository identityRepository, IVmsLogger <UserService> logger, IPasswordManager passwordManager, IServiceBusMessagePublisher publisher, IJwtManager jwtManager, IRefreshTokenService tokenService, IResetRequestFactory resetRequestFactory, IResetRequestRepository resetRequestRepository, IBusinessRepository businessRepository, INumberGenerator numberGenerator)
 {
     _pendingIdentityRepository = pendingIdentityRepository;
     _identityRepository        = identityRepository;
     _logger                 = logger;
     _passwordManager        = passwordManager;
     _publisher              = publisher;
     _jwtManager             = jwtManager;
     _tokenService           = tokenService;
     _resetRequestFactory    = resetRequestFactory;
     _resetRequestRepository = resetRequestRepository;
     _businessRepository     = businessRepository;
     _numberGenerator        = numberGenerator;
 }
Beispiel #8
0
 public ResetRequestController(IResetRequestRepository repository)
 {
     this.ResetRequestRepository = repository;
 }
 public ResetRequestController(IResetRequestRepository repository)
 {
     this.ResetRequestRepository = repository;
 }