public async Task <IActionResult> GetPersion() { var _per = new PER(); bool update = await TryUpdateModelAsync(_per); if (update) { return(Content("**********************************************************\n测试成功")); } else { return(Content("**********************************************************\n测试失败,请重新测试!!!")); } }
public IActionResult GetPersionData([ModelBinder] PER obj) { return(Content("Hello gamecc666")); }
public IActionResult Index([ModelBinder] PER str) { return(RedirectToAction("Index")); }