Пример #1
0
        public ActionResult list(string id, string query = null)
        {
            var data = new List <BatchQuizMap>();

            if (!String.IsNullOrWhiteSpace(query))
            {
                return(new JsonNetResult(new { aaData = data.Where(P => true).ToList() }));
            }
            else
            {
                data = _db.GetAllBatchQuizMappings();
            }

            return(new JsonNetResult(new { aaData = data }));
        }