public ActionResult GetColumnName(long scId, string user, string objname) { JsonResult ret = new JsonResult(); try { List <string> objs = new List <string>(); using (var dal = new DmDAL(GetSessionConnStr(scId))) { objs = dal.GetAllColumns(user, objname); } ret.Data = JsonConvert.SerializeObject(new { status = 0, data = objs }); } catch (Exception ex) { ret.Data = JsonConvert.SerializeObject(new { status = 1, message = ex.Message }); RecordException(ex); } return(ret); }