예제 #1
0
        public async Task <GetResponse <IReadOnlyList <IRuleSet> > > GetAllAsync()
        {
            var getResponse = new GetResponse <IReadOnlyList <IRuleSet> >();

            try
            {
                getResponse = await _ruleSetRepository.GetAllAsync();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                getResponse.AddError(ex);
                _logManager.LogError(ex, "Error retrieving ruleSets");
            }

            return(getResponse);
        }