Ejemplo n.º 1
0
        public async Task <bool> DeleteAttachment(int attachmentId)
        {
            var attachment = await attachmentRepository.DeleteAttachmentById(attachmentId);

            if (attachment == null)
            {
                return(false);
            }

            return(await attachmentRepository.SaveChanges());
        }