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