Refactor RecActionDto and add InvokeRecActionCommand

Converted RecActionDto from class to record for immutability
and value-based equality. Added nullable properties
`ActionId` and `ProfileId` to RecActionDto.

Introduced InvokeRecActionCommand.cs, which includes:
- A new InvokeRecActionCommand record inheriting from RecActionDto.
- Constructors for initializing InvokeRecActionCommand.
- An extension method `ToInvokeCommand` for converting
  RecActionDto to InvokeRecActionCommand.
This commit is contained in:
2025-11-27 11:20:41 +01:00
parent 0ec913b95e
commit d1e8f619f5
2 changed files with 21 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
namespace ReC.Application.Common.Dto;
public class RecActionDto
public record RecActionDto
{
public long? ActionId { get; init; }