public IList <SecretQuestion> GetUserSecretQuestions(string token) { var process = GetMutiFactorProcess(token); var qs = _processService.GetUserSecretQuestions(process.Login); return(qs.Select(q => q.ToModel()).ToList()); }
public IList<SecretQuestion> GetUserQuestions(string token) { var process = GetActiveProcess(token); if(process == null) return new List<SecretQuestion>(); var qs = _processService.GetUserSecretQuestions(process.Login); var list = qs.Select(q => q.ToModel()).ToList(); return list; }
public IList <SecretQuestion> GetUserQuestions(string token) { var session = Context.OpenSession(); var process = GetActiveProcess(session, token); if (process == null) { return(new List <SecretQuestion>()); } var qs = _processService.GetUserSecretQuestions(process.Login); var list = qs.Select(q => q.ToModel()).ToList(); return(list); }