public static Quiz ToDomainModel(this QuizModel quizModel)
 {
     //woh! this seems kinda hard
     return(new Quiz
     {
         // OPTIONAL TODO: Map domain properties to equivalent ApiModel properties
         // THIS IS OPTIONAL. It isn't used in this project since we don't
         // allow creation or updating of quizzes.
     });
 }
Example #2
0
 public static Quiz ToDomainModel(this QuizModel quizModel)
 {
     return(new Quiz
     {
         // OPTIONAL TODO: Map domain properties to equivalent ApiModel properties
         // THIS IS OPTIONAL. It isn't used in this project since we don't
         // allow creation or updating of quizzes.
         Id = quizModel.Id,
         Title = quizModel.Title,
         Instructions = quizModel.Instructions,
     });
 }