Enhance action link generation and handling
- Updated
ProjectResourceEndpoint.csto passHttpContexttoInsertProjectResourceAsyncfor correct base URI in action links. - Modified
IProjectResourceService.csto includeMicrosoft.AspNetCore.Httpand updatedInsertProjectResourceAsyncmethod signature to acceptHostStringfor base URI. - Introduced exception handling in
ActionLinkServicefor existing action links, throwingRecordAlreadyExistExceptionif found. - Adjusted
ProjectResourceServiceto injectIActionLinkServicefor action link generation and updated methods to useHostStringparameter 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.