public static PsychicClass PsychicItem(int number) { List <PsychicClass> list = HttpContext.Current.Session["PsychicClass"] as List <PsychicClass>; PsychicClass psychic = null; for (int i = 0; i < list.Count; i++) { psychic = list[i]; if (psychic.Number == number) { break; } } return(psychic); }
public static List <LogClass> PsychicAnswers(int number) { PsychicClass psychic = PsychicItem(number); return(psychic.Answers); }