Exemplo n.º 1
0
 public async Task getAttachmentById(int attachmentId)
 {
     if (await attachmentRepository.GetAttachmentById(attachmentId) == null)
     {
         throw new AttachmentNotFoundExcpetion("attachment not exist");
     }
 }
Exemplo n.º 2
0
 public async Task <AttachmentEntity> GetAttachmentById(int attachmentId)
 {
     try
     {
         return(await attachmentRepository.GetAttachmentById(attachmentId));
     }
     catch (Exception e)
     {
         throw e;
     }
 }