Ejemplo n.º 1
0
 public async Task LoadTradeviewFulDataFromSource()
 {
     try
     {
         _logger.Info($"LoadBseCmFullDataFromSourceDb Started");
         await _tradeViewBseCmRepository.LoadTradeviewFulDataFromSource();
     }
     catch (Exception ex)
     {
         _logger.Error($"LoadTradeViewDataBseCm: Exception in LoadTradeviewFulDataFromSource", ex);
     }
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> SyncBseCmAllTrades()
        {
            try
            {
                _log.Info($"SyncBseCmAllTrades started");
                await _tradeViewBseCmRepository.LoadTradeviewFulDataFromSource();

                _log.Info($"SyncBseCmAllTrades Finished");
                return(Ok(HttpStatusCode.OK));
            }
            catch (Exception ex)
            {
                _log.Error("Error in SyncBseCmAllTrades ", ex);
                return(StatusCode(500));
            }
        }