public ActionResult list(string query = null) { var data = new List <Quiz>(); if (!String.IsNullOrWhiteSpace(query)) { data = _db.GetAllQuizzes(query); } else { data = _db.GetAllQuizzes(); } return(new JsonNetResult(new { aaData = data })); }