public function handle(DeleteAttachmentCommand $command)
 {
     $attachment = $this->attachmentService->getOneById($command->getAttachmentId());
     $this->attachmentService->delete($attachment);
 }
 public function handle(CreateAttachmentForUserProductCommand $command)
 {
     $this->attachmentService->createAttachmentForUserProduct($command->getUploadFileDTO(), $command->getUserId(), $command->getProductId());
 }
 public function handle(MarkAttachmentUnlockedCommand $command)
 {
     $attachment = $this->attachmentService->getOneById($command->getAttachmentId());
     $attachment->setUnlocked();
     $this->attachmentService->update($attachment);
 }
 public function handle(CreateAttachmentForOrderItemCommand $command)
 {
     $this->attachmentService->createAttachmentForOrderItem($command->getUploadFileDTO(), $command->getOrderItemId());
 }