public ActionResult QueryInvoiceType() { var service = new ConfigInvoiceTypeSevice(); var list = service.QueryAll(); if (list != null) { var modelList = new List<ConfigInvoiceTypeModel>(); foreach (var config in list) { modelList.Add( DataTransfer.Transfer<ConfigInvoiceTypeModel>( config, typeof(Config_Invoice_Type))); } return Json(modelList); } return null; }