Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Fixed return type from sample code
Browse files Browse the repository at this point in the history
Fixed typo on return type from sample code.
  • Loading branch information
ALMMa committed Mar 20, 2014
1 parent 2309ec3 commit 0f65621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ActionResult MyActionResult([ModelBinder(typeof(DataTablesBinder)] IDataT
{
// do your stuff...
var paged = myFilteredData.Skip(requestModel.Start).Take(requestModel.Length);
return new DataTablesResponse(requestModel.Draw, paged, myFilteredData.Count(), myOriginalDataSet.Count());
return View(new DataTablesResponse(requestModel.Draw, paged, myFilteredData.Count(), myOriginalDataSet.Count()));
}

// Or if you'd like to return a JsonResult, try this:
Expand Down

0 comments on commit 0f65621

Please sign in to comment.