@page "/cities"

<PageHeader Name="Villes" NameType="Liste" Link="/cities/create"></PageHeader>

<Card>
    <table class="table table-responsive">
        <thead>
            <tr>
                <th>#</th>
                <th class="text-nowrap">Nom</th>
            </tr>
        </thead>
        <tbody>
            @if(Cities != null)
            {
                @foreach (var city in Cities)
                {
                    <tr>
                        <th>@city.Id</th>
                        <td>@city.Name</td>
                    </tr>
                }
            } else
            {
                <tr>
                    <td colspan="2">Chargement...</td>
                </tr>
                
            }

            
        </tbody>
    </table>
</Card>