[]
        
(Showing Draft Content)

C1.Web.Mvc.CollectionViewHelper.BatchEdit

BatchEdit Method

BatchEdit<T>(CollectionViewBatchEditRequest<T>, Func<BatchOperatingData<T>, CollectionViewResponse<T>>, Func<IEnumerable<T>>)

Edits batch data accroding to the request and the edit action.

Declaration
public static CollectionViewResponse<T> BatchEdit<T>(CollectionViewBatchEditRequest<T> requestData, Func<BatchOperatingData<T>, CollectionViewResponse<T>> editAction, Func<IEnumerable<T>> read)
Parameters
Type Name Description
CollectionViewBatchEditRequest<T> requestData

The request data

Func<BatchOperatingData<T>, CollectionViewResponse<T>> editAction

The edit action

Func<IEnumerable<T>> read

The read action provides the newest data.

Returns
Type Description
CollectionViewResponse<T>

The response data

Type Parameters
Name Description
T

The type of data record