public ViewResult TryViewWithModel()
 {
     EDSS.Models.TryModel tryModel = new EDSS.Models.TryModel();
     tryModel.LearnerId = "000010";
     tryModel.Name      = "jbhuang99";
     return(this.View("/Views/Samples/TryController/tryViewWithModel.cshtml", tryModel));
 }
 public ViewResult TryView()
 {
     EDSS.Models.TryModel tryModel = new EDSS.Models.TryModel();
     tryModel.LearnerId = "000010";
     tryModel.Name      = "jbhuang99";
     return(this.View("/Views/Samples/TryController/tryView.cshtml", tryModel));//要传多个模型对象,可模型对象集合,或,部分视图,或,视图中定义帮助器/方法实现。
 }
 public ContentResult TryStringFromModel()
 {
     EDSS.Models.TryModel tryModel = new EDSS.Models.TryModel();
     tryModel.LearnerId = "000010";
     tryModel.Name      = "jbhuang99";
     return(this.Content("这是返回取值于模型M的属性的字符串到浏览器端的示例:" + tryModel.LearnerId + ";" + tryModel.Name));
 }