예제 #1
0
 protected void Button_Add_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         ApplicationUser user = identityContext.GetByEmailEager(Email.Text);
         identityContext.setRole(user.Id, CustomRoles.roles.Prof.ToString());
     }
 }