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