Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user