Example #1
0
 public IHttpActionResult GetRoles(string userId)
 {
     return(_roleManager.GetRolesAsync(userId) == null ? (IHttpActionResult)NotFound() : Ok());
 }
Example #2
0
 public async Task <IList <string> > GetRolesAsync(TUser user)
 {
     return(await Task.FromResult((_userRoleManager.GetRolesAsync(user)) as IList <string>));
 }