Epiworx.Business.AttachmentRepository.AttachmentDelete C# (CSharp) Method

AttachmentDelete() public static method

public static AttachmentDelete ( Attachment attachment ) : bool
attachment Attachment
return bool
        public static bool AttachmentDelete(Attachment attachment)
        {
            Attachment.DeleteAttachment(
                new AttachmentDataCriteria
                {
                    AttachmentId = attachment.AttachmentId
                });

            return true;
        }

Same methods

AttachmentRepository::AttachmentDelete ( int attachmentId ) : bool

Usage Example

 public static bool AttachmentDelete(int attachmentId)
 {
     return(AttachmentRepository.AttachmentDelete(
                AttachmentRepository.AttachmentFetch(attachmentId)));
 }