public TestDetailViewModel(Test test)
 {
     if (test != null)
     {
         NewQuestionViewModel        = new NewQuestionViewModel();
         NewQuestionViewModel.TestId = test.Id;
         Id        = test.Id;
         Name      = test.Name;
         Time      = test.Time;
         Questions = test.Questions;
         Subject   = test.Subject;
     }
 }
 public TestDetailViewModel()
 {
     NewQuestionViewModel = new NewQuestionViewModel();
 }