Esempio n. 1
0
 private void RefreshCommands()
 {
     AddMakeCommand.RaiseCanExecuteChanged();
     RemoveMakeCommand.RaiseCanExecuteChanged();
     AddModelCommand.RaiseCanExecuteChanged();
     RemoveModelCommand.RaiseCanExecuteChanged();
 }
Esempio n. 2
0
        public async Task <ActionResult <int> > CreateMake([FromBody] AddMakeCommand command)
        {
            int id = await this.Mediator.Send(command);

            return(Ok(id));
        }