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); }
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)); }