SHARE
TWEET

ListOfProducts

Kenoru May 31st, 2020 730 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @using BusinessLayer.Entities
  2. @model IEnumerable<ProductBLL>
  3.  
  4. @{
  5.     ViewBag.Title = "Магические приколясы";
  6. }
  7.  
  8. <div class="content">
  9.  
  10. @foreach(var p in @Model)
  11. {
  12.     <div class="product">
  13.         <div class="image">
  14.             <img src="..\img\@p.Image">
  15.         </div>
  16.         <div class="name">@p.Name</div>
  17.         <div class="description">@Html.Raw(p.Description)</div>
  18.  
  19.         <div class="price">@p.Price.ToString("# GP")</div>
  20.         <div class="button">Купить</div>
  21.     </div>
  22. }
  23. </div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top