Created
September 28, 2014 12:18
-
-
Save ArveSystad/153108d101acf724d7d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CatalogContentType(GUID = "64ED6E28-07B1-4F18-A075-046D1557EFFE")] | |
public class Product : ProductContent, IResourceable | |
{ | |
public virtual string ContentAssetIdInternal { get; set; } | |
public Guid ContentAssetsID | |
{ | |
get | |
{ | |
Guid assetId; | |
if (Guid.TryParse(ContentAssetIdInternal, out assetId)) | |
return assetId; | |
return Guid.Empty; | |
} | |
set | |
{ | |
ContentAssetIdInternal = value.ToString(); | |
this.ThrowIfReadOnly(); | |
IsModified = true; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment