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); } }
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; } } }
private void TryInitClientRepo() { ClientRepo = RepoGetter <ClientRepo> .Get(string.Empty, null, null); }