示例#1
0
        public void Remove(Guid id)
        {
            var command = new DeleteSongCommnad {
                Id = id
            };

            _bus.SendCommand(command);
        }
示例#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);
        }