From a28dface913ee29a6e07778fd38923f9316439db Mon Sep 17 00:00:00 2001 From: swapnamol-abraham Date: Thu, 9 Apr 2026 13:13:55 +0100 Subject: [PATCH] handled empty records --- .../Views/Home/_MyCoursesAndElearning.cshtml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml b/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml index 394398de..dc588006 100644 --- a/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml +++ b/LearningHub.Nhs.WebUI/Views/Home/_MyCoursesAndElearning.cshtml @@ -200,6 +200,16 @@

You have not accessed any learning yet.

Accessed resources and courses will be displayed here. Browse from the list of resources below or search for a specific term using the search bar at the top of the screen.

} + else if (Model.DashboardTrayLearningResourceType == "courses" && Model.MyLearnings.TotalCount <= 0) + { +

You have not accessed any coursees yet.

+

Accessed resources and courses will be displayed here. Browse from the list of resources below or search for a specific term using the search bar at the top of the screen.

+ } + else if (Model.DashboardTrayLearningResourceType == "all" && Model.MyLearnings.TotalCount <= 0) + { +

You have not accessed any learning yet.

+

Accessed resources and courses will be displayed here. Browse from the list of resources below or search for a specific term using the search bar at the top of the screen.

+ } }