Make Action property non-nullable in InvokeRecActionCommand

Updated the `Action` property in the `InvokeRecActionCommand` class
to be non-nullable by initializing it with a default value (`= null!;`).
This change ensures better null safety and prevents potential null
reference issues. The `= null!;` syntax suppresses compiler warnings
while guaranteeing the property will be properly initialized before use.
This commit is contained in:
tekh 2025-12-01 12:45:58 +01:00
parent de17d398ff
commit a2ebbe83cb

View File

@ -10,7 +10,7 @@ namespace ReC.Application.RecActions.Commands;
public record InvokeRecActionCommand : IRequest
{
public RecActionDto Action { get; set; }
public RecActionDto Action { get; set; } = null!;
}
public static class InvokeRecActionCommandExtensions