public async Task <IEnumerable <DatamartDto> > GetAvailableDatamarts() { _logger.Log(LoggingLevel.Info, "GetAvailableDatamarts started"); var allDatamarts = await _datamartManager.GetAllDatamarts(); return(allDatamarts); }
public async Task <IEnumerable <DatamartDto> > GetAvailableDatamarts() { _logger.Log(LoggingLevel.Info, "GetAvailableDatamarts started"); try { return(await _datamartManager.GetAllDatamarts()); } catch (Exception ex) { _logger.Log(LoggingLevel.Error, "There was an error : ", ex); } return(new List <DatamartDto>()); }