Exemplo n.º 1
0
        public static RestAssetFolder ToRest(this AssetFolder folder)
        {
            RestAssetFolder restFolder = new RestAssetFolder();

            restFolder.Id         = folder.Id;
            restFolder.CreatedAt  = folder.CreatedAt;
            restFolder.ModifiedAt = folder.ModifiedAt;
            restFolder.Version    = folder.Version;
            restFolder.Name       = folder.Name;

            return(restFolder);
        }
Exemplo n.º 2
0
        public static AssetFolder ToModel(this RestAssetFolder restFolder)
        {
            AssetFolder folder = new AssetFolder();

            folder.Id         = restFolder.Id;
            folder.CreatedAt  = restFolder.CreatedAt;
            folder.ModifiedAt = restFolder.ModifiedAt;
            folder.Version    = restFolder.Version;
            folder.Name       = restFolder.Name;

            return(folder);
        }