Refactor BatchRecActionViewResponse to a record type

Refactored `BatchRecActionViewResponse` from a mutable class to an immutable record type with a constructor for `TotalActionCount` and a new `ActionExceptionCount` property. Moved the record to its own file under the `ReC.Application.Common.Dto` namespace.

Updated `InvokeBatchRecActionViewsCommand` and `InvokeRecActionViewsCommandHandler` to use the new record type. Removed `SuccessCount` and `FailureCount` properties, replacing them with `ActionExceptionCount`.

Performed minor cleanup, including removing the old class definition and updating namespaces.
This commit is contained in:
2026-08-04 13:55:08 +02:00
parent cad7ca16cb
commit c729cb33e3
2 changed files with 10 additions and 13 deletions

View File

@@ -0,0 +1,6 @@
namespace ReC.Application.Common.Dto;
public record BatchRecActionViewResponse(int TotalActionCount)
{
public int ActionExceptionCount { get; internal set; } = 0;
}