public static ProductTypeInfo Read(int id) { if (CacheHelper.Read(cacheKey) == null) { return(dal.Read(id)); } return(((List <ProductTypeInfo>)CacheHelper.Read(cacheKey)).FirstOrDefault(k => k.Id == id) ?? new ProductTypeInfo()); }