public async Task <IActionResult> Register([FromBody] CreateNewCustomerViewModel createViewModel) { var command = _mapper.Map <CreateCustomerCommand>(createViewModel); var response = await _bus.SendCommand(command); return(Response(response)); }
public CreateNewCustomerView() { InitializeComponent(); var vm = new CreateNewCustomerViewModel(); this.DataContext = vm; if (vm.CloseAction == null) { vm.CloseAction = new Action(() => this.Close()); } if (vm.RefreshAction == null) { vm.RefreshAction = new Action(() => MainWindowViewModel.Instance.RefreshRepairs()); } }
public CreateNewCustomerUC(CreateNewCustomerViewModel viewModel) { _createNewCustomerVM = viewModel; Init(); }
public CreateNewCustomerUC() { _createNewCustomerVM = new CreateNewCustomerViewModel(); Init(); }