title: how to load a different _layout.cshtml depending on role?
body: <p>My app will have different roles, one role will be the Global Administrator, which will have options like adding users, adding companies, etc.</p>
  
  <p>The template I bought has one _layout.cshtml, however I need that it loads a different one depending on the role of the user.</p>
  
  <p>One which has a very different menu.</p>
  
  <p>My viewstart</p>
  
  <pre><code>@{
      Layout = "~/Views/Shared/_Layout.cshtml";
  }
  </code></pre>
  
  <p>and my layouts.cshtml</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
  
      &lt;title&gt;INSPINIA | @ViewBag.Title&lt;/title&gt;
  
      &lt;link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'&gt;
      &lt;!-- Add local styles, mostly for plugins css file --&gt;
      @if (IsSectionDefined("Styles"))
          {@RenderSection("Styles", required: false)}
  
      &lt;!-- Add jQuery Style direct - used for jQGrid plugin --&gt;
      &lt;link href="@Url.Content("~/Scripts/plugins/jquery-ui/jquery-ui.css")" rel="stylesheet" type="text/css" /&gt;
  
      &lt;!-- Primary Inspinia style --&gt;     
      @Styles.Render("~/font-awesome/css")                                                
      @Styles.Render("~/Content/css")
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;!-- Skin configuration box --&gt;
      @Html.Partial("_SkinConfig")
  
      &lt;!-- Wrapper--&gt;
      &lt;!-- PageClass give you ability to specify custom style for specific view based on action --&gt;
      &lt;div id="wrapper" class="@Html.PageClass()"&gt;
  
          &lt;!-- Navigation --&gt;
          @Html.Partial("_Navigation")
  
          &lt;!-- Page wraper --&gt;
          &lt;div id="page-wrapper" class="gray-bg @ViewBag.SpecialClass"&gt;
  
              &lt;!-- Top Navbar --&gt;
              @Html.Partial("_TopNavbar")
  
              &lt;!-- Main view  --&gt;
              @RenderBody()
  
              &lt;!-- Footer --&gt;
              @Html.Partial("_Footer")
  
          &lt;/div&gt;
          &lt;!-- End page wrapper--&gt;
  
          &lt;!-- Right Sidebar --&gt;
          @Html.Partial("_RightSidebar")
  
      &lt;/div&gt;
      &lt;!-- End wrapper--&gt;
  
      &lt;!-- Section for main scripts render --&gt;
      @Scripts.Render("~/bundles/jquery")
      @Scripts.Render("~/bundles/bootstrap")
      @Scripts.Render("~/plugins/slimScroll")
      @Scripts.Render("~/bundles/inspinia")
  
      &lt;!-- Skin config script - only for demo purpose--&gt;
      @Scripts.Render("~/bundles/skinConfig")
  
      &lt;!-- Handler for local scripts --&gt;
      @RenderSection("scripts", required: false)
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Everything works perfect, but I need to create another layouts.cshtml with a reference to a different navigation partial view and thats where the question comes in,</p>
  
  <p>How can I make the app to load that specific layouts.csthml when the user belongs to a specific role?</p>