public questStatus Logout(LogoutRequestViewModel logoutRequestViewModel) { // Initialize questStatus status = null; // Perform logout UserSessionId userSessionId = new UserSessionId(logoutRequestViewModel.ctx); AccountMgr accountMgr = new AccountMgr(this.UserSession); status = accountMgr.Logout(userSessionId); if (!questStatusDef.IsSuccess(status)) { return(status); } return(new questStatus(Severity.Success)); }