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

AttachmentFetch() public static method

public static AttachmentFetch ( int attachmentId ) : Attachment
attachmentId int
return Attachment
        public static Attachment AttachmentFetch(int attachmentId)
        {
            return Attachment.FetchAttachment(
                new AttachmentDataCriteria
                {
                    AttachmentId = attachmentId
                });
        }

Usage Example

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