Exemplo n.º 1
0
        public ActionResult GetTableColumns(string url)
        {
            var db     = new CommonDal();
            var result = db.GetTableColumns(Global.CurrentUser.RoleId, url);

            if ((result != null && result.Count <= 0) || result == null)
            {
                result = db.GetTableColumnsByUser(url, Global.CurrentUser.UserID);
            }
            return(Content(JsonConvert.SerializeObject(new
            {
                result
            })));
        }