public override bool IsUserInRole(string username, string roleName) { List <Rol> roles = new RolRepository().ListarPorNombreUsuario(username); return(roles.Exists(p => p.Nombre == roleName)); }
public override bool IsUserInRole(string username, string roleName) { List <Rol> roles = new RolRepository().ListarPorNombreUsuario(username); return(roles.Exists(p => p.Nombre == roleName)); }