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