Guest User

Untitled

a guest
Jan 29th, 2017
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 1.37 KB | None | 0 0
  1. <div class="navbar-collapse collapse">
  2.                 <ul class="nav navbar-nav">
  3.                     @if (Session["UserID"] != null)
  4.                     {
  5.                         if ((bool)Session["isTreiner"] == true)
  6.                         {
  7.                             <li>@Html.ActionLink("Excercises", "ExcerciseList", "Trainer")</li>
  8.                             <li>@Html.ActionLink("Training Plans", "TrainingPlanList", "Trainer")</li>
  9.                             <li>@Html.ActionLink("Clients", "ClientsList", "Trainer")</li>
  10.                         }
  11.                         else
  12.                         {
  13.                             <li>@Html.ActionLink("My Results", "ResultsList", "Shared",
  14.  new { id = int.Parse(Session["UserID"].ToString()) },"")</li>
  15.                             <li>@Html.ActionLink("My Training Plan", "TrainingPlan", "Client")</li>
  16.                             <li>@Html.ActionLink("My Trainer", "Trainer", "Client")</li>
  17.                         }
  18.                     }
  19.                     else
  20.                     {
  21.                         <li>@Html.ActionLink("Home", "Index", "Home")</li>
  22.                         <li>@Html.ActionLink("About", "About", "Home")</li>
  23.                         <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
  24.                     }
  25.                 </ul>
  26.                 @Html.Partial("_LoginPartial")
  27. </div>
Add Comment
Please, Sign In to add comment