# C1.Web.Mvc.CollectionViewHelper.BatchEdit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_CollectionViewHelper_BatchEdit_" data-uid="C1.Web.Mvc.CollectionViewHelper.BatchEdit*">BatchEdit Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_CollectionViewHelper_BatchEdit_" data-uid="C1.Web.Mvc.CollectionViewHelper.BatchEdit*"></a>
<h4 id="C1_Web_Mvc_CollectionViewHelper_BatchEdit__1_C1_Web_Mvc_CollectionViewBatchEditRequest___0__System_Func_C1_Web_Mvc_BatchOperatingData___0__C1_Web_Mvc_CollectionViewResponse___0___System_Func_System_Collections_Generic_IEnumerable___0___" data-uid="C1.Web.Mvc.CollectionViewHelper.BatchEdit``1(C1.Web.Mvc.CollectionViewBatchEditRequest{``0},System.Func{C1.Web.Mvc.BatchOperatingData{``0},C1.Web.Mvc.CollectionViewResponse{``0}},System.Func{System.Collections.Generic.IEnumerable{``0}})">BatchEdit&lt;T&gt;(CollectionViewBatchEditRequest&lt;T&gt;, Func&lt;BatchOperatingData&lt;T&gt;, CollectionViewResponse&lt;T&gt;&gt;, Func&lt;IEnumerable&lt;T&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Edits batch data accroding to the request and the edit action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static CollectionViewResponse&lt;T&gt; BatchEdit&lt;T&gt;(CollectionViewBatchEditRequest&lt;T&gt; requestData, Func&lt;BatchOperatingData&lt;T&gt;, CollectionViewResponse&lt;T&gt;&gt; editAction, Func&lt;IEnumerable&lt;T&gt;&gt; read)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function BatchEdit(Of T)(requestData As CollectionViewBatchEditRequest(Of T), editAction As Func(Of BatchOperatingData(Of T), CollectionViewResponse(Of T)), read As Func(Of IEnumerable(Of T))) As CollectionViewResponse(Of T)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Web.Mvc.CollectionViewBatchEditRequest-1.html">CollectionViewBatchEditRequest</a>&lt;T&gt;</td>
      <td><span class="parametername">requestData</span></td>
      <td><p>The request data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;<a class="xref" href="C1.Web.Mvc.BatchOperatingData-1.html">BatchOperatingData</a>&lt;T&gt;, <a class="xref" href="C1.Web.Mvc.CollectionViewResponse-1.html">CollectionViewResponse</a>&lt;T&gt;&gt;</td>
      <td><span class="parametername">editAction</span></td>
      <td><p>The edit action</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;&gt;</td>
      <td><span class="parametername">read</span></td>
      <td><p>The read action provides the newest data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Web.Mvc.CollectionViewResponse-1.html">CollectionViewResponse</a>&lt;T&gt;</td>
      <td><p>The response data</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">T</span></td>
      <td><p>The type of data record</p>
</td>
    </tr>
  </tbody>
</table>
</div>
