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.
6 lines
172 B
C#
6 lines
172 B
C#
namespace ReC.Application.Common.Dto;
|
|
|
|
public record BatchRecActionViewResponse(int TotalActionCount)
|
|
{
|
|
public int ActionExceptionCount { get; internal set; } = 0;
|
|
} |