示例#1
0
        public async Task <IActionResult> SyncNseCmAllTrades()
        {
            try
            {
                _log.Info($"SyncNseCmAllTrades started");
                await _tradeViewNseCmRepo.LoadTradeviewFulDataFromSource();

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