F1 - Autentcacion - Completa
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
@using Microsoft.AspNetCore.Identity
|
||||
@model IEnumerable<IdentityRole>
|
||||
|
||||
<h1>Roles</h1>
|
||||
<p><a asp-action="Create" class="btn btn-primary">Crear nuevo rol</a></p>
|
||||
<table class="table">
|
||||
<thead><tr><th>Nombre</th><th>Acciones</th></tr></thead>
|
||||
<tbody>
|
||||
@foreach (var role in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>@role.Name</td>
|
||||
<td>
|
||||
<a asp-action="Delete" asp-route-id="@role.Id" class="btn btn-danger btn-sm">Eliminar</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user