Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @page
- @model IndexModel
- @{
- ViewData["Title"] = "Home page";
- }
- <h1>@Model.Message</h1>
- <form method="post">
- <table class="table">
- <thead>
- <tr>
- <th>Id</th>
- <th>Name</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- @foreach (Customer customer in Model.Customers)
- {
- <tr>
- <td>@customer.Id</td>
- <td>@customer.Name</td>
- <td>
- <a asp-page="./Edit" asp-route-id="@customer.Id">Edit</a>
- <button type="submit" asp-page-handler="delete" asp-route-id="@customer.Id">Delete</button>
- </td>
- </tr>
- }
- </tbody>
- </table>
- </form>
- <a asp-page="./Create">Create</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement