Skip to content

Commit

Permalink
Fix/2948 (#1359)
Browse files Browse the repository at this point in the history
# Description

This PR includes the following proposed change(s):

- fix name comparing
  • Loading branch information
peggy-quartech authored Sep 3, 2024
1 parent 3ea1536 commit 01efdba
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public async Task<ApplicationCreateResponse> 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.");

Expand Down

0 comments on commit 01efdba

Please sign in to comment.