Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Fix - pagination on Courses list in Admin panel doesn't work #125

KrzysztofPajak1cab2ed8bcc4
diff --git a/src/Web/Grand.Web.Admin/Controllers/CourseController.cs b/src/Web/Grand.Web.Admin/Controllers/CourseController.cs
index b720c8175..627192aef 100644
--- a/src/Web/Grand.Web.Admin/Controllers/CourseController.cs
+++ b/src/Web/Grand.Web.Admin/Controllers/CourseController.cs
@@ -133,7 +133,7 @@ namespace Grand.Web.Admin.Controllers
var gridModel = new DataSourceResult
{
Data = courses,
- Total = courses.Count
+ Total = courses.TotalCount
};
return Json(gridModel);
}