コード例 #1
0
        public async Task <Unit> Handle(DeleteCommunityCommand request, CancellationToken cancellationToken)
        {
            if (!request.Community.Image.Equals($"{nameof(Community)}/no-image.jpg"))
            {
                await _blobService.DeleteBlobAsync(request.Community.Image);
            }

            await _communityService.DeleteCommunityAsync(request.Community);

            return(Unit.Value);
        }