Exemple #1
0
 public void Create(CreateCustomerCommand command)
 {
     if (ModelState.IsValid)
     {
         _commandDispatcher.RunCommand(command);
     }
     else
     {
         throw new InvalidCreateCustomerCommadException();
     }
 }