Beispiel #1
0
        public Task HandleAsync(CreateSample command)
        {
            var sample = new Sample(command.Id, command.Volume);

            return(repository.SaveAsync(sample));
        }
Beispiel #2
0
        public void Handle(CreateSample command)
        {
            var experience = new Sample(command.Id);

            repository.Save(experience);
        }