Esempio n. 1
0
        public JsonResult GetColumnValues(string token, string table, string columns)
        {
            var tbl = _repo.GetTable(table);

            if (!_auth.AuthenticateForTable(token, table))
            {
                throw new TedExeption(ExceptionCodes.Authentication);
            }

            return(Json(new
            {
                success = true,
                data = _repo.GetColumnValues(table, columns)
            }));
        }