Esempio n. 1
0
        public async Task <List <SPYconstituentModel> > GetSpyHistory()
        {
            await _stocksRepository.DeleteSPYconstituentEntities();

            var historyItems = await _SPYconstituentService.GetSpyAddedHistory();

            var dbEntities = _mapper.Map <List <SPYconstituentEntity> >(historyItems);
            await _stocksRepository.SaveSPYconstituentEntities(dbEntities);

            return(historyItems);
        }