public ActionResult list(string query = null) { var data = _db.GetAllAttemptDetails(); if (!String.IsNullOrWhiteSpace(query)) { return(new JsonNetResult(new { aaData = data.Where(P => true).ToList() })); } else { return(new JsonNetResult(new { aaData = data.ToList() })); } }