Guest User

Untitled

a guest
May 26th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. using System.ComponentModel;
  2. using MongoDB.Bson;
  3.  
  4. namespace KvizzIt.Models
  5. {
  6. public class QuizModel
  7. {
  8. public QuizModel(){}
  9.  
  10.  
  11. public QuizModel(QuizModel GeneralQuizInfo ){
  12. quizName = GeneralQuizInfo.quizName;
  13. quizInfo = GeneralQuizInfo.quizInfo;
  14. author = "Sondre";
  15. //author = GeneralQuizInfo.author;
  16. category = "Sport";
  17. //category = GeneralQuizInfo.category;
  18. date = GeneralQuizInfo.date;
  19. imgUrl = GeneralQuizInfo.imgUrl;
  20. questions = GeneralQuizInfo.questions;
  21.  
  22. }
  23.  
  24. public ObjectId Id{get; set;}
  25.  
  26. [DisplayName("Quiz Name")]
  27. public string quizName{get; set;}
  28.  
  29. [DisplayName("Quiz Info")]
  30. public string quizInfo{get; set;}
  31.  
  32. [DisplayName("Author")]
  33. public string author{get; set;}
  34.  
  35. [DisplayName("Category")]
  36. public string category{get; set;}
  37.  
  38. [DisplayName("Date")]
  39. public string date{get; set;}
  40.  
  41. [DisplayName("Image")]
  42. public string imgUrl{get; set;}
  43.  
  44. public questionModel[] questions {get; set;}
  45.  
  46. }
  47. }
Add Comment
Please, Sign In to add comment