public async Task CreateUpdate(CreateUpdateRequestDto createUpdateRequestDto) { SetCherryItemExpirationDate(createUpdateRequestDto.CherryItem); var cherry = CherryMapper.MapToModel(createUpdateRequestDto.CherryItem); await _dataLoadLogic.CreateUpdate(createUpdateRequestDto.Key, cherry); }
public async Task <CherryDto> Get(string key) { var item = await _dataLoadLogic.Get(key); ResetExpirationDate(item); await _dataLoadLogic.CreateUpdate(key, item); var result = CherryMapper.MapToDtoModel(key, item); return(result); }