title: MVC identity changing user roles
body: <p>I have a Vb.net MVC project with single user authentication.  Admins can view all users within a "manager users" page, users are split in to 3 different roles Admin, Employee and User respectively.  I want Admins to be able to promote roles: Users to Employee or Employee to Admin, and also demote.</p>
  
  <p>I thought about adding a button next to each user to either promote or demote.  I'm struggling as to how each button would be linked to each user and how i would post that one user change back to the controller.</p>
  
  <p>Could someone please advise, thanks</p>
  
  <p>UserViewModels.vb</p>
  
  <pre><code>Public Class GroupedUserViewModel
     Public Property Users() As List(Of UserViewModel)
     Public Property Admins() As List(Of UserViewModel)
     Public Property Employee() As List(Of UserViewModel)
  End Class
  
  Public Class UserViewModel
     Public Property FullName() As String
     Public Property Email() As String
     Public Property RoleName() As String
  End Class
  </code></pre>
  
  <p>View:
  I'm displaying all Admin, Employee and User roles within the view, here is the admin example:</p>
  
  <pre><code>@Modeltype GroupedUserViewModel
  
   @If Model.Admins.Any Then
      @:&lt;div Class="Rtable Rtable--3cols Rtable--collapse"&gt;
          @For Each Admin In Model.Admins
              @:&lt;div Class="Rtable-cell"&gt;
              @Admin.FullName
              @:&lt;/div&gt;
              @:&lt;div Class="Rtable-cell"&gt;
              @Admin.Email
              @:&lt;/div&gt;
              @:&lt;div Class="Rtable-cell"&gt;
              @Admin.RoleName
              @:&lt;/div&gt;
          Next Admin
     @:&lt;/div&gt;
  End If
  </code></pre>