Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- model IEnumerable<MVC_DAL.BusDetails>
- @Html.ActionLink("Create New", "AddBus")
- <table>
- <tr>
- <th>
- @Html.DisplayNameFor(model => model.BusSrlNo)
- </th>
- <th>
- @Html.DisplayNameFor(model => model.BusName)
- </th>
- <th></th>
- </tr>
- @foreach (var item in Model)
- {
- <tr>
- <td>
- @Html.DisplayFor(modelIte => item.BusSrlNo)
- </td>
- <td>
- @Html.DisplayFor(modelItem => item.BusName)
- </td>
- <td>
- @Html.ActionLink("Edit", "Edit", new { id=item.BusSrlNo }) |
- @Html.ActionLink("Details", "Details", new { id=item.BusSrlNo */ })|
- @Html.ActionLink("Delete", "Delete", new { id=item.BusSrlNo */ })|
- </td>
- </tr>
- }
- </table>
- public class BusDetails
- {
- public int BusSrlNo { get; set; }
- public string BusName { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement