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