Advertisement
Guest User

Untitled

a guest
Feb 6th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. @model BookingAppStore.Models.IndexViewModel
  2.  
  3. @using BookingAppStore.Helpers
  4.  
  5. @{
  6.  
  7. ViewBag.Title = "Book Store";
  8.  
  9. }
  10.  
  11. <table class="table">
  12.  
  13. <tr>
  14.  
  15. <td>Название</td>
  16.  
  17. <td>Автор</td>
  18.  
  19. <td>Цена</td>
  20.  
  21. </tr>
  22.  
  23. @foreach (var item in Model.Books)
  24.  
  25. {
  26.  
  27. <tr>
  28.  
  29. <td>@item.Name</td>
  30.  
  31. <td>@item.Author</td>
  32.  
  33. <td>@item.Price</td>
  34.  
  35. <td><p><a href="Home/Buy/@item.Id">Купить</a></p></td>
  36.  
  37. <td><p><a href="Home/GetImage/@item.Id">Посмотреть</a></p></td>
  38.  
  39. <td><p><a href="Home/GetFile/@item.Id">Скачать</a></p></td>
  40.  
  41. </tr>
  42.  
  43. }
  44.  
  45. </table>
  46.  
  47. <br />
  48.  
  49. <div class="btn-group">
  50.  
  51. @Html.PageLinks(Model.PageInfo, x => Url.Action("Index", new { page = x }))
  52.  
  53. </div>
  54.  
  55. <div>
  56.  
  57. <img src='../../photo/book.gif'>
  58.  
  59. <br>
  60.  
  61. <p>Настоящие время:</p>
  62.  
  63. <h3>@DateTime.Now.ToShortTimeString()</h3>
  64.  
  65. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement