SHARE
TWEET

ViewModel index.cshtml

a guest Aug 29th, 2011 856 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @{
  2.     ViewBag.Title = "Index";
  3. }
  4. @model signalr2.AnasayfaViewModel
  5.  
  6. @if (Model.Success)
  7. {
  8.         <ul>
  9.             @foreach (var item in Model.Kategoriler)
  10.                 {
  11.                         <li>@item</li>
  12.                 }
  13.         </ul>
  14.    
  15.     <div>
  16.     @foreach (var item in Model.EnSonUrunler)
  17.     {
  18.         <text>@item</text><br />
  19.     }
  20.     </div>
  21.     .
  22.     .
  23.     .
  24.  
  25. }
  26. else
  27. {
  28. <h2> @Model.Message </h2>
  29. }
RAW Paste Data
Want to get better at C#?
Learn to code C# in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top