[英]The implementation of a multi-state model in MVC
業務/域對象:
public class Question {
public int Id { get; set; }
public string Text { get; set; }
public string ImagePath { get; set; }
public IList<Answer> Answers { get; set; }
public Answer CorrectAnswer { get; set; }
}
public class Answer {
public int Id { get; set; }
public string Text { get; set; }
}
查看模型:
public class QuestionViewModel {
public Question Question { get; set; }
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.