public string OpenSession() { LoginItrisRequestEntity loginItrisRequestEntity = new LoginItrisRequestEntity() { username = _authenticateEntity._username, password = _authenticateEntity._password, database = _authenticateEntity._database }; itrisSessionRepository = new ItrisSessionRepository(loginItrisRequestEntity); return(itrisSessionRepository.GetItrisSession(_authenticateEntity.LoginUrl())); }
public string CloseSession(string itrisSession) { LoginItrisRequestEntity loginItrisRequestEntity = new LoginItrisRequestEntity() { username = _authenticateEntity._username, password = _authenticateEntity._password, database = _authenticateEntity._database }; itrisSessionRepository = new ItrisSessionRepository(loginItrisRequestEntity); string message = itrisSessionRepository.CloseItrisSession(_authenticateEntity.LogOutUrl(), itrisSession); return(message); }