@model IEnumerable<Yavsc.Models.Relationship.CircleMember>

@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>

<p>
    <a asp-action="Create">@SR["Ajouter un utilisateur à un cercle"]</a>
</p>
<table class="table">
    <tr>
        <th>@SR["Cercle"]</th>
        <th>@SR["Utilisateur"]</th>
        <th></th>
    </tr>
    
@foreach (var item in Model) {
    <tr>
        <td>
        @Html.DisplayFor(m=>item.Circle) 
        </td>
        <td>
        @Html.DisplayFor(m=>item.Member) 
        </td>

        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}
</table>
