public async Task <GetResponse <IRuleSet> > GetByIdAsync(int id) { var getResponse = new GetResponse <IRuleSet>(); try { getResponse = await _ruleSetRepository.GetByIdAsync(id); } catch (Exception ex) { Console.WriteLine(ex); getResponse.AddError(ex); _logManager.LogError(ex, "Error retrieving ruleSet"); } return(getResponse); }