Add ReadResultViewQuery and clean up DTO namespace
Introduced ReadResultViewQuery for querying result views with optional filters (Id, ActionId, ProfileId). Cleaned up ResultViewDto.cs by removing an unused using directive and reformatting the namespace declaration. Added necessary usings to support the new query.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
using ReC.Domain.Entities;
|
||||
|
||||
namespace ReC.Application.Common.Dto;
|
||||
namespace ReC.Application.Common.Dto;
|
||||
|
||||
public record ResultViewDto
|
||||
{
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using MediatR;
|
||||
using ReC.Application.Common.Dto;
|
||||
|
||||
namespace ReC.Application.ResultViews.Queries;
|
||||
|
||||
public record ReadResultViewQuery : IRequest<IEnumerable<ResultViewDto>>
|
||||
{
|
||||
public long? Id { get; init; } = null;
|
||||
|
||||
public long? ActionId { get; init; } = null;
|
||||
|
||||
public long? ProfileId { get; init; } = null;
|
||||
}
|
||||
Reference in New Issue
Block a user