Refactor code structure for improved readability and maintainability

This commit is contained in:
Torsten Brendgen
2026-05-16 16:45:28 +02:00
parent 14f856fdb3
commit 96a3e98109
426 changed files with 29236 additions and 114 deletions

View File

@@ -139,7 +139,8 @@ namespace Microsoft.SelfService.Portal.Core.API.Controllers
if (!_environmentInterface.CheckEnvironmentById(Id))
return NotFound();
var environment = _mapper.Map<GetEnvironmentDomainDto>(_environmentInterface.GetLinkedDomainsByEnvironmentId(Id));
var environment = GetEnvironmentDomainDto.FromModel(
_environmentInterface.GetLinkedDomainsByEnvironmentId(Id));
if (!ModelState.IsValid)
return BadRequest(ModelState);