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:
@@ -1,6 +1,6 @@
|
||||
namespace ReC.Application.Common.Dto;
|
||||
|
||||
public class RecActionDto
|
||||
public record RecActionDto
|
||||
{
|
||||
public long? ActionId { get; init; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user