public TModel GetById(Guid id) { var cacheEntity = _cacheRepository.GetById(id); if (cacheEntity == null) { return(null); } return(JsonConvert.DeserializeObject <TModel>(cacheEntity.Data)); }