title: Rendering different View According to User Roles ASP.NET MVC 5
body: <p>Here's what I'm struggling with. I setup the roles in Asp.Net MVC 5 project. I have 2 roles : admin and employee. I want them to go to different views when they Login. How can I do that ?</p>
  
  <pre><code>        public async Task&lt;ActionResult&gt; Login(LoginViewModel model, string returnUrl)
          {
              if (ModelState.IsValid)
              {
                  var user = await UserManager.FindAsync(model.UserName, model.Password);
                  if (user != null)
                  {
                      await SignInAsync(user, model.RememberMe);
                      //if user is admin, return View1();
                      //if user is employee, return View2(); 
  
                  }
              }
              return View();
          }
  </code></pre>