chore: update the version of AutoMapper

- update controller to return iactionresult
This commit is contained in:
tekh 2025-08-04 15:27:38 +02:00
parent c178aa7fba
commit d2180c912b
2 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,7 @@
using MediatR;
using Microsoft.AspNetCore.Mvc;
using System.DirectoryServices;
namespace DigitalData.ActiveDirectory.API.Controllers;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1416:Validate platform compatibility", Justification = "<Pending>")]
[Route("api/[controller]")]
[ApiController]
public class ActiveDirectoryController : ControllerBase
@ -16,5 +14,5 @@ public class ActiveDirectoryController : ControllerBase
}
[HttpGet]
public async Task<IEnumerable<ResultPropertyCollection>> GetAll([FromQuery] DirectorySearchQuery query) => await _mediator.Send(query);
public async Task<IActionResult> GetAll([FromQuery] DirectorySearchQuery query) => Ok(await _mediator.Send(query));
}

View File

@ -16,7 +16,7 @@
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
<PackageReference Include="System.DirectoryServices.AccountManagement" Version="7.0.1" />
<PackageReference Include="MediatR" Version="13.0.0" />
<PackageReference Include="AutoMapper" Version="12.5.0" />
<PackageReference Include="AutoMapper" Version="13.0.1" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="7.0.0" />
</ItemGroup>