public ActionResult Index(string id) { var codeValue = new CodeValue(); codeValue.List(id); return(View(codeValue)); }
// // List values // private void loadCodeValue(string codeType) { dtCodeValue.Clear(); var codeList = new CodeValue(); codeList.List(codeType); foreach (CodeValue code in codeList.codeValueList) { DataRow elementRow = dtCodeValue.NewRow(); elementRow["FKCodeType"] = code.FKCodeType; elementRow["ID"] = code.ID; elementRow["Description"] = code.Description; elementRow["Abbreviation"] = code.Abbreviation; elementRow["ValueExtended"] = code.ValueExtended; dtCodeValue.Rows.Add(elementRow); } }