public CachingAttribute(CachingProfiles cachingProfile, string dropCacheKey, int cacheDuration = 0) { CachingProfile = cachingProfile; DropCacheKey = dropCacheKey; CacheDuration = CachingProfile == CachingProfiles.Custom ? cacheDuration : (int)cachingProfile; }
public CachingAttribute(CachingProfiles cachingProfile, int cacheDuration = 0) { CachingProfile = cachingProfile; CacheDuration = CachingProfile == CachingProfiles.Custom ? cacheDuration : (int)cachingProfile; }