Exemplo n.º 1
0
        public IActionResult FilterResults(string orderby, string orderdirection, int index, int length)
        {
            object newData = new { url = "" };

            //if (staticid % 4 != 0)
            //    newData = new { url = "/Results/FilterResults?orderby=analysedate&orderdirection=asc&index=0&length=1" };

            return(Json(new { studies = new object[] { Study.GenerateRandomStudy() }, data = newData }));
        }