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, }); }
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 }); }