private async Task ApplyCommandAsync() { MonitorModel model = new MonitorModel { Id = _model.Id, Name = Name, UserId = Settings.UserId, URL = URL, SMSAlert = SMS, PushAlert = Push, }; try { await _monitorService.EditMonitorAsync(model); await DialogService.ShowAlertAsync(AppResources.ChangesApplied, "", AppResources.OK); await NavigationService.PopAsync(); } catch (ServiceAuthenticationException e) { await DialogService.ShowAlertAsync(AppResources.GenericError, AppResources.Error, AppResources.OK); } catch (HttpRequestExceptionEx e) { await DialogService.ShowAlertAsync(AppResources.GenericError, AppResources.Error, AppResources.OK); } catch (Exception e) { await DialogService.ShowAlertAsync(AppResources.GenericError, AppResources.Error, AppResources.OK); } }