title: How to display data based on roles in MVC?
body: <p>I added the AuthorizeAttribute to secure my ActionResult.</p>
  
  <pre><code>[Authorize(Roles = "MyUser, Admin")]
      public ActionResult Index()
      {
          var allData = myDataRepository.FindAllData();
          return View(allData);
      }
  </code></pre>
  
  <p>The Index view displays a list of data from my table. I want to show 1 row is the user Role is MyUser and all rows if the Role is Admin.</p>
  
  <p>Is the correct (MVC) way just checking for the user Role and doing an if else?</p>