public static webModel.AssetListItem ToWebModel(this coreModel.BlobFolder assetFolder)
 {
     var retVal = new webModel.AssetListItem
     {
         Name = assetFolder.Name,
         ParentUrl = assetFolder.ParentUrl,
         Url = assetFolder.Url,
         Type = "folder"
     };
     return retVal;
 }
        public static webModel.AssetListItem ToWebModel(this coreModel.BlobFolder assetFolder)
        {
            var retVal = new webModel.AssetListItem
            {
                Name      = assetFolder.Name,
                ParentUrl = assetFolder.ParentUrl,
                Url       = assetFolder.Url,
                Type      = "folder"
            };

            return(retVal);
        }
 public static webModel.AssetListItem ToWebModel(this coreModel.BlobInfo blobInfo)
 {
     var retVal = new webModel.AssetListItem
     {
         Name = blobInfo.FileName,
         Url = blobInfo.Url,
         Size = blobInfo.Size.ToHumanReadableSize(),
         ContentType = blobInfo.ContentType,
         Type = "blob",
         ModifiedDate = blobInfo.ModifiedDate
     };
     return retVal;
 }
        public static webModel.AssetListItem ToWebModel(this coreModel.BlobInfo blobInfo)
        {
            var retVal = new webModel.AssetListItem
            {
                Name         = blobInfo.FileName,
                Url          = blobInfo.Url,
                Size         = blobInfo.Size.ToHumanReadableSize(),
                ContentType  = blobInfo.ContentType,
                Type         = "blob",
                ModifiedDate = blobInfo.ModifiedDate
            };

            return(retVal);
        }
        public static webModel.AssetListItem ToWebModel(this coreModel.BlobInfo blobInfo)
        {
            var retVal = new webModel.AssetListItem
            {
                Name         = blobInfo.FileName,
                Url          = blobInfo.Url,
                Size         = blobInfo.Size,
                ContentType  = blobInfo.ContentType,
                Type         = "blob",
                ModifiedDate = blobInfo.ModifiedDate,
                RelativeUrl  = blobInfo.RelativeUrl
            };

            return(retVal);
        }