@using (Html.BeginForm("SaveRisDBConfig", "Home", FormMethod.Post)) {@Html.LabelFor(model => model.DBHost)@Html.EditorFor(model => model.DBHost) @Html.ValidationMessageFor(model => model.DBHost)}
[HttpPost] public ActionResult SaveRisDBConfig(string commandName){switch (commandName){ case "保存":....case "连接测试":...default:break; }}