public async Task LoadTradeviewFulDataFromSource() { try { _logger.Info($"LoadBseCmFullDataFromSourceDb Started"); await _tradeViewBseCmRepository.LoadTradeviewFulDataFromSource(); } catch (Exception ex) { _logger.Error($"LoadTradeViewDataBseCm: Exception in LoadTradeviewFulDataFromSource", ex); } }
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)); } }