public void Save() { AttachmentId = AttachmentObject.AddAttachment(MainId, Filename, AttachmentNote, Size, NumberPages, AdminOnly).AttachmentId; }