예제 #1
0
        public TModel GetById(Guid id)
        {
            var cacheEntity = _cacheRepository.GetById(id);

            if (cacheEntity == null)
            {
                return(null);
            }

            return(JsonConvert.DeserializeObject <TModel>(cacheEntity.Data));
        }