???????????????иó????????Query String??????????Action????Index????????????foo=123&bar=456&baz=789???????????????????????????????????????????????Action????Index?ж?????????????????κ?Ч????

?????????ASP.NET MVC???????????????????????????????InputExtensions?????InputHelper?????????????????InputHelper????????????????????????ModelState?л????????????ModelState?в????????????ViewData?л????????????????ModelState?е?????????ViewData???????????????
public static class InputExtensions
{
private static MvcHtmlString InputHelper(HtmlHelper htmlHelper?? InputType inputType?? ModelMetadata metadata?? string name?? object value?? bool useViewData?? bool isChecked?? bool setId?? bool isExplicitValue?? string format?? IDictionary<string?? object> htmlAttributes);
}
private static MvcHtmlString InputHelper(HtmlHelper htmlHelper?? InputType inputType?? ModelMetadata metadata?? string name?? object value?? bool useViewData?? bool isChecked?? bool setId?? bool isExplicitValue?? string format?? IDictionary<string?? object> htmlAttributes)
{

switch (inputType)
{

default:
{
string str4 = (string) htmlHelper.GetModelStateValue(fullHtmlFieldName?? typeof(string));
tagBuilder.MergeAttribute("value"?? str4 ?? (useViewData ? htmlHelper.EvalString(fullHtmlFieldName?? format) : str2)?? isExplicitValue);
goto Label_016C;
}
}

}
?????????rinsen??????????е?????????????????????????????????????Э?????????????????????????ΥMVC????????MVC??????????????????????????????????????Controller?е????Action????????????Action???????????????????????????View???????????????????????????????????View????????Action????????????????????????????Action????????????????????1???Model??????????????????????????????????????????????м?????????????????
??????????????????????????????
??????Update???????
?????????Model????????Property??????Int????????????Form??????????????????????????ModelState.IsValid??false??????????????View??????????????????????????????Form?С?
?????????model??????е?????????null????Property????????????0)???????????????????0???????????????
?????????????????ModelState??????????????
????[?????????????0???????????“?????????????????”??]