public async void DoAddItem() { if (AddNewCustomer.Password == AddNewCustomer.ConfirmPassword) { CustomersCatalogVm.Add(AddNewCustomer); await _getMembers.SavetoJson(CustomersCatalogVm); _frameNavigation.ActivateFrameNavigation(typeof(MainPage)); } else { MessageDialog msd = new MessageDialog("password incorrect", "error"); msd.ShowAsync(); } }