예제 #1
0
 public void Update(MediaContentParameter content)
 {
     content.MediaContent.ContentFile = new ContentFile()
     {
         FileName = content.MediaContent.FileName, Stream = content.FileDataToStream()
     };
     mediaContentProvider.Update(content.MediaContent, content.MediaContent);
     FileUrlHelper.ResolveUrl(content.MediaContent.VirtualPath);
 }
예제 #2
0
 public string Add(MediaContentParameter content)
 {
     content.MediaContent.ContentFile = new ContentFile()
     {
         FileName = content.MediaContent.FileName, Stream = content.FileDataToStream()
     };
     mediaContentProvider.Add(content.MediaContent);
     return(FileUrlHelper.ResolveUrl(content.MediaContent.VirtualPath));
 }