Disco.Services.AttachmentDataStoreExtensions.SaveAttachment C# (CSharp) Method

SaveAttachment() public static method

public static SaveAttachment ( this Attachment, DiscoDataContext Database, Stream FileContent ) : string
Attachment this
Database Disco.Data.Repository.DiscoDataContext
FileContent Stream
return string
        public static string SaveAttachment(this IAttachment Attachment, DiscoDataContext Database, Stream FileContent)
        {
            string filePath = Attachment.RepositoryFilename(Database);
            DataStore.WriteFile(filePath, FileContent);
            return filePath;
        }

Same methods

AttachmentDataStoreExtensions::SaveAttachment ( this Attachment, DiscoDataContext Database, byte FileContent ) : string