For each row of the records of my sql table in the view I add two checkboxes and a textbox to later save what has been selected and entered in the textbox, as I can know the checkboxes that were selected, the textbox text since data_id belongs the data.
my eyesight
<div class="jumbotron">
<table class="table responsive shopex-table table-hover no-margin">
<thead>
<tr>
<th>Id Pago</th>
<th>Id Cliente</th>
<th>Nombre cliente</th>
<th>Monto</th>
<th>Monto en Dólares</th>
<th>% comisión cliente</th>
<th>% comisión a pagar</th>
<th>Autorización</th>
<th>Rechazo</th>
<th>Comentario Rechazo</th>
<th>Fecha</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
double montoDolares = Convert.ToDouble(item.Pagos.Monto) * 13.25;
decimal comisionPagar = Convert.ToInt32(item.Cliente.Comision) * item.Pagos.Monto;
<tr>
<td class="vcenter">
@item.Pagos.IdPago
</td>
<td class="vcenter">
@item.Pagos.IdCliente
</td>
<td class="vcenter">
@item.Cliente.Nombre
</td>
<td class="vcenter">
@item.Pagos.Monto
</td>
<td class="vcenter">
@montoDolares
</td>
<td class="vcenter">
@item.Cliente.Comision
</td>
<td class="vcenter">
@comisionPagar
</td>
<td style="text-align:center">
@Html.CheckBox("Autoriza", false, htmlAttributes: new { @class = "chkAutoriza" })
</td>
<td style="text-align:center">
@Html.CheckBox("Rechaza", false, htmlAttributes: new { @class = "chkRechaza"})
</td>
<td class="vcenter">
@Html.TextBox("StudentName", null, new { @class = "form-control"})
</td>
<td class="vcenter">
@item.Pagos.Fecha.ToString("dd/MM/yyyy")
</td>
<td class="vcenter text-right"></td>
</tr>
}
</tbody>
</table>
<button class="btn btn-success">Autorizar</button>
</div>