Beispiel #1
0
        public Session Login(SessionRealPerson personDto, DateTime loginTime, Guid tokenId, string clientIpAddress)
        {
            Session session = new Session();

            session.LoginTime = loginTime;
            session.TokenId   = tokenId;

            session.RealPerson = personDto;

            session.ApiSessionId    = personDto.ApiSessionId;
            session.ClientIpAddress = clientIpAddress;

            SessionList.Add(session);
            return(session);
        }
Beispiel #2
0
        public SessionRealPerson Copy()
        {
            SessionRealPerson person = new SessionRealPerson();

            person.Id         = Id;
            person.Name       = Name;
            person.Surname    = Surname;
            person.LanguageId = LanguageId;
            person.GenderId   = GenderId;

            person.PersonRelationId = PersonRelationId;

            person.DefaultCurrencyId  = DefaultCurrencyId;
            person.SelectedCurrencyId = SelectedCurrencyId;

            return(person);
        }