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:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user