public AlterarPedidoPageViewModel(INavigationService navigationService) : base(navigationService) { Title = "Alterar Pedido"; AlterarCommand = new Command(async() => { var pedido = new Pedido() { Id = Id, SLA = SelectedSLAItem.Value, TipoDeServicoId = SelectedItem.Key, ValorMaoDeObra = ValorMaoDeObra, ValorPecas = ValorPecas, VeiculoId = VeiculoId }; try { await PedidoService.Alterar(pedido); } catch { await navigationService.NavigateAsync("MenuPage"); } }); }