/// <summary> /// Get Index Page /// </summary> /// <returns></returns> public ActionResult Index() { var model = new IndexModel() { SoftWareLicenseInfoList = new List<SoftWareLicenseInfo>() }; for (int i = 0; i < 3; i++) { var testData = new SoftWareLicenseInfo() { ItemNumber = "9b-aaa" + i, QuestionGroupInfoList = new List<QuestionGroupInfo>() }; for (int j = 0; j < 2; j++) { var testQGroup = new QuestionGroupInfo() { QuestionFieldInfoList = new List<QuestionFieldInfo>(), QuestionGroupId = j * 3, RequiredMark = "1" }; for (int k = 0; k < 1; k++) { var testField = new QuestionFieldInfo() { QuestionFieldId = k.ToString(), QuestionField = "Field" + k }; testQGroup.QuestionFieldInfoList.Add(testField); } testData.QuestionGroupInfoList.Add(testQGroup); } model.SoftWareLicenseInfoList.Add(testData); } return View(model); }
public ActionResult Index(IndexModel indexModel) { return View(indexModel); }