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