Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.ComponentModel;
- using MongoDB.Bson;
- namespace KvizzIt.Models
- {
- public class QuizModel
- {
- public QuizModel(){}
- public QuizModel(QuizModel GeneralQuizInfo ){
- quizName = GeneralQuizInfo.quizName;
- quizInfo = GeneralQuizInfo.quizInfo;
- author = "Sondre";
- //author = GeneralQuizInfo.author;
- category = "Sport";
- //category = GeneralQuizInfo.category;
- date = GeneralQuizInfo.date;
- imgUrl = GeneralQuizInfo.imgUrl;
- questions = GeneralQuizInfo.questions;
- }
- public ObjectId Id{get; set;}
- [DisplayName("Quiz Name")]
- public string quizName{get; set;}
- [DisplayName("Quiz Info")]
- public string quizInfo{get; set;}
- [DisplayName("Author")]
- public string author{get; set;}
- [DisplayName("Category")]
- public string category{get; set;}
- [DisplayName("Date")]
- public string date{get; set;}
- [DisplayName("Image")]
- public string imgUrl{get; set;}
- public questionModel[] questions {get; set;}
- }
- }
Add Comment
Please, Sign In to add comment