public void Remove(Guid id) { var command = new DeleteSongCommnad { Id = id }; _bus.SendCommand(command); }
public Task <Unit> Handle(DeleteSongCommnad request, CancellationToken cancellationToken) { if (!request.IsValid()) { NotifyValidationErrors(request); return(Unit.Task); } //Del entity in repository return(Unit.Task); }