Esempio n. 1
0
 protected override void Initialize(System.Web.Routing.RequestContext requestContext)
 {
     base.Initialize(requestContext);
     if (OTSession.OperationalClient != null)
     {
         _clientAccountRepo = RepoGetter <ClientAccountRepo> .Get(OTSession.LoginedUserName, OTSession.RealClient.Id, OTSession.OperationalClient.Id);
     }
 }
Esempio n. 2
0
        private void InitFields()
        {
            MembershipUser user = _membership.GetUser();

            if (user != null && _loginedUserId.ToString() != user.ProviderUserKey.ToString())
            {
                _loginedUserName = user.UserName;
                _loginedUserId   = new Guid(user.ProviderUserKey.ToString());
                _realClient      = ClientRepo.GetClientProjected(_loginedUserId);
                if (_realClient != null)
                {
                    _repo = RepoGetter <ClientRepo> .Get(_loginedUserName, _realClient.Id, GetOperationalClientId().Value);

                    _currentBallance = _realClient.Ballance;
                }
            }
        }
Esempio n. 3
0
 private void TryInitClientRepo()
 {
     ClientRepo = RepoGetter <ClientRepo> .Get(string.Empty, null, null);
 }