public ActionResult FieldTypeProc(int id, string subname, string typename) { if (id == 0) { FieldType.AddInfo(new FieldType(subname, typename)); } else { FieldType.UpdateInfo(new FieldType(id, subname, typename)); } return(RedirectToAction("FormParameters")); }