예제 #1
0
        private async void LoadVerbs()
        {
            ACLVerbs.Clear();
            var verbs = await _aclVerbRepository.GetAllAsync();

            foreach (var verb in verbs)
            {
                ACLVerbs.Add(verb);
            }
        }
예제 #2
0
        public async Task <List <AclVerb> > GetAclVerbsAsync()
        {
            var aclVerbs = await _aclVerbRepository.GetAllAsync();

            return(aclVerbs.ToList());
        }