Exemplo n.º 1
0
        public void Remove(Guid id)
        {
            var command = new DeleteSongCommnad {
                Id = id
            };

            _bus.SendCommand(command);
        }
Exemplo n.º 2
0
        public Task <Unit> Handle(DeleteSongCommnad request, CancellationToken cancellationToken)
        {
            if (!request.IsValid())
            {
                NotifyValidationErrors(request);

                return(Unit.Task);
            }

            //Del entity in repository

            return(Unit.Task);
        }