public async Task <IActionResult> Register(RegistrationViewModel viewModel)
        {
            var customerId = Guid.NewGuid().ToString();
            await _stories.Tell(new RegisterCustomer(
                                    customerId
                                    , viewModel.FirstName
                                    , viewModel.LastName
                                    , viewModel.Address
                                    , viewModel.PhoneNumber
                                    ));

            return(RedirectToAction(nameof(All)));
        }
 public void When(ICommand command)
 {
     _bus.Tell(command).Wait();
 }
 public void When(ICommand command)
 {
     _stories.Tell(command).Wait();
 }