Enhance action link generation and handling
- Updated
ProjectResourceEndpoint.cs
to passHttpContext
toInsertProjectResourceAsync
for correct base URI in action links. - Modified
IProjectResourceService.cs
to includeMicrosoft.AspNetCore.Http
and updatedInsertProjectResourceAsync
method signature to acceptHostString
for base URI. - Introduced exception handling in
ActionLinkService
for existing action links, throwingRecordAlreadyExistException
if found. - Adjusted
ProjectResourceService
to injectIActionLinkService
for action link generation and updated methods to useHostString
parameter for correct base URI in emails. - Overall, these changes improve the application's action link generation with correct base URI, enhance exception handling, and ensure proper use of HTTP context.