Esempio n. 1
0
        public ActionResult GetTableFilterColumns(int idTable)
        {
            var db     = new CommonDal();
            var result = db.GetTableFilterColumns(Global.CurrentUser.RoleId, idTable);

            if ((result != null && result.Count <= 0) || result == null)
            {
                result = db.GetTableFilterColumnsByUser(Global.CurrentUser.UserID, idTable);
            }
            result.Where(T => T.isQuickFilter = true);
            return(Content(JsonConvert.SerializeObject(new
            {
                result
            })));
        }