@if (errorHasOccurred)
- {
-
- var professionalRegistrationNumberError = ViewData.ModelState["ProfessionalRegistrationNumber"]?.Errors.FirstOrDefault();
- if (professionalRegistrationNumberError == null)
- {
-
- }
- if (professionalRegistrationNumberError != null)
- {
-
-
- }
- }
+ {
+
+ }
Learner information
diff --git a/DigitalLearningSolutions.Web/Views/Shared/_ProfessionalRegistrationNumberError.cshtml b/DigitalLearningSolutions.Web/Views/Shared/_ProfessionalRegistrationNumberError.cshtml
deleted file mode 100644
index 2c501f385a..0000000000
--- a/DigitalLearningSolutions.Web/Views/Shared/_ProfessionalRegistrationNumberError.cshtml
+++ /dev/null
@@ -1,17 +0,0 @@
-@model string
-@{
-
-}
-
-
- There is a problem
-
-
-
- Error:
- Error:
- @Html.Raw(Model)
-
-
-
-
diff --git a/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml b/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml
index 99fabb74ef..438175861c 100644
--- a/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml
+++ b/DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/EditDelegate/Index.cshtml
@@ -34,7 +34,19 @@
}
if (professionalRegistrationNumberError != null)
{
-
+
+
+ There is a problem
+
+
+
+ Error:
+ Error:
+ @Html.Raw(professionalRegistrationNumberError.ErrorMessage)
+
+
+
+
}
}