public Task <IdentityRole> FindByNameAsync(String roleName) { var role = _roleTable.GetRoleByName(roleName); IdentityRole result = role as IdentityRole; return(Task.FromResult <IdentityRole>(result)); }
public Task <TRole> FindByNameAsync(string roleName) { TRole result = roleTable.GetRoleByName(roleName) as TRole; return(Task.FromResult <TRole>(result)); }