Esempio n. 1
0
        public Task <IdentityRole> FindByNameAsync(String roleName)
        {
            var          role   = _roleTable.GetRoleByName(roleName);
            IdentityRole result = role as IdentityRole;

            return(Task.FromResult <IdentityRole>(result));
        }
Esempio n. 2
0
        public Task <TRole> FindByNameAsync(string roleName)
        {
            TRole result = roleTable.GetRoleByName(roleName) as TRole;

            return(Task.FromResult <TRole>(result));
        }