public static Attachment AttachmentInsert(Attachment attachment)
        {
            attachment = attachment.Save();

            FeedService.FeedAdd("Created", attachment);

            return attachment;
        }
        public static Attachment AttachmentUpdate(Attachment attachment)
        {
            if (!attachment.IsDirty)
            {
                return(attachment);
            }

            attachment = attachment.Save();

            return(attachment);
        }
        public static Attachment AttachmentUpdate(Attachment attachment)
        {
            attachment = attachment.Save();

            FeedService.FeedAdd("Updated", attachment);

            return attachment;
        }
        public static Attachment AttachmentInsert(Attachment attachment)
        {
            attachment = attachment.Save();

            return(attachment);
        }