Update query to return IEnumerable<OutResDto>

Reordered using directives in DtoMappingProfile.cs.
Added AutoMapper mapping for OutRes to OutResDto.
Modified ReadOutResQuery to return IEnumerable<OutResDto>.
Updated ReadOutResHandler to handle collection results:
- Changed Handle method to return IEnumerable<OutResDto>.
- Updated mapper.Map to map to a collection of OutResDto.
This commit is contained in:
2025-12-04 11:54:38 +01:00
parent 5cefe1457f
commit 5a226bfcea
2 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
using AutoMapper;
using ReC.Domain.Entities;
using ReC.Domain.Entities;
namespace ReC.Application.Common.Dto;
@@ -8,5 +7,6 @@ public class DtoMappingProfile : AutoMapper.Profile
public DtoMappingProfile()
{
CreateMap<RecActionView, RecActionDto>();
CreateMap<OutRes, OutResDto>();
}
}