public ActionResult Handle(PowerTablesData data, IResponseModifiersApplier responseModifiers) { // queryable reveals here var mapped = data.Mapped.Value; PowerTablesResponse ptr = new PowerTablesResponse() { PageIndex = data.CurrentPage, ResultsCount = data.ResultsCount, Data = data.Configuration.EncodeResults(mapped), AdditionalData = new Dictionary <string, object>(), Success = false }; try { responseModifiers.ApplyResponseModifiers(data, ptr); } catch (Exception ex) { ptr.FormatException(ex); } ptr.Success = true; return(new JsonNetResult() { Data = ptr, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }