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:
@@ -0,0 +1,6 @@
|
||||
namespace ReC.Application.Common.Dto;
|
||||
|
||||
public record BatchRecActionViewResponse(int TotalActionCount)
|
||||
{
|
||||
public int ActionExceptionCount { get; internal set; } = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user