Example #1
0
        private static async Task <List <DailyLog> > APIExecutePatching(string currency, DateTime startDate, DateTime endDate)
        {
            //async call
            var resultRest = await BOTBusinessService.GetRatePatching(currency, startDate, endDate);

            if (resultRest.Success == true)
            {
                return(resultRest.Data);
            }
            else
            {
                return(new List <DailyLog>()); //key will be default(DateTime)
                                               //error for particular currency
            }
        }