# C1.Web.Mvc.CollectionViewHelper.Edit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_CollectionViewHelper_Edit_" data-uid="C1.Web.Mvc.CollectionViewHelper.Edit*">Edit Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_CollectionViewHelper_Edit_" data-uid="C1.Web.Mvc.CollectionViewHelper.Edit*"></a>
<h4 id="C1_Web_Mvc_CollectionViewHelper_Edit__1_C1_Web_Mvc_CollectionViewEditRequest___0__System_Func___0_C1_Web_Mvc_CollectionViewItemResult___0___System_Func_System_Collections_Generic_IEnumerable___0___" data-uid="C1.Web.Mvc.CollectionViewHelper.Edit``1(C1.Web.Mvc.CollectionViewEditRequest{``0},System.Func{``0,C1.Web.Mvc.CollectionViewItemResult{``0}},System.Func{System.Collections.Generic.IEnumerable{``0}})">Edit&lt;T&gt;(CollectionViewEditRequest&lt;T&gt;, Func&lt;T, CollectionViewItemResult&lt;T&gt;&gt;, Func&lt;IEnumerable&lt;T&gt;&gt;)</h4>
<div class="markdown level1 summary"><p>Edits data accroding to the request and the write 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; Edit&lt;T&gt;(CollectionViewEditRequest&lt;T&gt; requestData, Func&lt;T, CollectionViewItemResult&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 Edit(Of T)(requestData As CollectionViewEditRequest(Of T), editAction As Func(Of T, CollectionViewItemResult(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.CollectionViewEditRequest-1.html">CollectionViewEditRequest</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;T, <a class="xref" href="C1.Web.Mvc.CollectionViewItemResult-1.html">CollectionViewItemResult</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>
