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); }
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); }