コード例 #1
0
        public ActionResult StudentInfo()
        {
            StudentViewModel model = new StudentViewModel();

                //model.StudentName = model.State;

            return View(model);
        }
コード例 #2
0
 //public string StudentName { get; set; }
 //public int Grade { get; set; }
 //
 // GET: /Student/
 public ActionResult Index()
 {
     StudentModels stdm = new StudentModels();
     StudentViewModel stdvm = new StudentViewModel(stdm);
     return View(stdvm);
 }
コード例 #3
0
 public ActionResult Results(StudentViewModel model)
 {
     // calls to code to update model, validation, LOB code, etc...
     return View(model);
 }