示例#1
0
        public async Task CreateUpdate(CreateUpdateRequestDto createUpdateRequestDto)
        {
            SetCherryItemExpirationDate(createUpdateRequestDto.CherryItem);

            var cherry = CherryMapper.MapToModel(createUpdateRequestDto.CherryItem);

            await _dataLoadLogic.CreateUpdate(createUpdateRequestDto.Key, cherry);
        }
示例#2
0
        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);
        }