示例#1
0
 public IQuestion ToModel()
 {
     return(new Question {
         ID = ID,
         Picture = TextFormatter.GetPicture(Text),
         Gearbox = TextFormatter.GetGearbox(Text),
         Text = TextFormatter.FormatQuestion(Text),
         Answer = Answer,
         PassCriteria = TextFormatter.FormatPassCriteria(PassCriteria),
         Author = TextFormatter.FormatAnswer(Author),
         Comment = TextFormatter.FormatComments(Comment),
         Source = Source,
     });
 }
示例#2
0
 public ISearchQuestionsResult ToModel()
 {
     return(new SearchQuestionsResult
     {
         ID = ID,
         Number = Number,
         Picture = TextFormatter.GetPicture(Text),
         Text = TextFormatter.FormatQuestion(Text),
         Answer = Answer,
         PassCriteria = TextFormatter.FormatPassCriteria(PassCriteria),
         Author = TextFormatter.FormatAnswer(Author),
         Comment = TextFormatter.FormatComments(Comment),
         Source = Source,
         TourFileName = TourFileName,
         TourName = TourName,
         TournamentFileName = TournamentFileName,
         TournamentName = TournamentName
     });
 }