Ejemplo n.º 1
0
        public async Task <Permission> GetItemAsync(string name)
        {
            List <Permission> permissions = await GetListInCacheAsync();

            if (!permissions.IsNullOrEmpty())
            {
                return(permissions.FirstOrDefault(m => m.Name == name));
            }
            return(await _manager.GetItemAsync(name));
        }