diff --git a/src/Spd.Presentation.Screening/Controllers/ApplicantController.cs b/src/Spd.Presentation.Screening/Controllers/ApplicantController.cs index 3634e99fd..817e5f010 100644 --- a/src/Spd.Presentation.Screening/Controllers/ApplicantController.cs +++ b/src/Spd.Presentation.Screening/Controllers/ApplicantController.cs @@ -71,8 +71,8 @@ public async Task CreateApplicantApp([FromBody] Appli if (appCreateRequest.DateOfBirth == null) throw new ApiException(HttpStatusCode.BadRequest, "Date Of Birth cannot be empty."); DateOnly requestBirthDate = (DateOnly)appCreateRequest.DateOfBirth; - if (!string.Equals(applicantInfo.FirstName, appCreateRequest.GivenName, StringComparison.InvariantCultureIgnoreCase) || - !string.Equals(applicantInfo.LastName, appCreateRequest.Surname, StringComparison.InvariantCultureIgnoreCase) || + if (!string.Equals(StringHelper.ToTitleCase(applicantInfo.FirstName), appCreateRequest.GivenName, StringComparison.InvariantCultureIgnoreCase) || + !string.Equals(StringHelper.ToTitleCase(applicantInfo.LastName), appCreateRequest.Surname, StringComparison.InvariantCultureIgnoreCase) || applicantInfo.BirthDate != requestBirthDate) throw new ApiException(HttpStatusCode.BadRequest, "The submitted user identity data is different than BCSC identity data.");