/// <summary> /// get a user information using user id /// </summary> /// <param name="data"></param> /// <returns></returns> public Data view(Data data) { Data param = new Data(); if (Text.isEmpty(data.getString("userId"))) { param.add("userId", data.getString("UserID")); } else { param.add("userId", data.getString("userId")); } UserData ud = new UserData(); //result.add("question", Cryptograph.Decrypt( result.getString("question") )); //result.add("answer", Cryptograph.Decrypt(result.getString("answer"))); return ud.view(param); }
/// <summary> /// get a user information using user id /// </summary> /// <param name="data"></param> /// <returns></returns> public override DataTable select(Data data) { Data param = new Data(); param.add("userId", data.getString("userId")); UserData ud = new UserData(); //result.add("question", Cryptograph.Decrypt( result.getString("question") )); //result.add("answer", Cryptograph.Decrypt(result.getString("answer"))); return ud.view(param).Source; }