Esempio n. 1
0
 public override object JsonResponse()
 {
     return(new
     {
         correct = Descriptor.CheckAnswer(2, Choice.ElementAt(0))
     });
 }
Esempio n. 2
0
 public override object JsonResponse()
 {
     return(new
     {
         question = Descriptor.GetQuestion(2),
         correct = Descriptor.CheckAnswer(1, Choice.ElementAt(0))
     });
 }
Esempio n. 3
0
 protected override bool SetChoice()
 {
     if (string.IsNullOrEmpty(Choice))
     {
         return(false);
     }
     if (!Descriptor.CheckAnswer(2, Choice.ElementAt(0)))
     {
         User.SetDead();
     }
     return(true);
 }