public async Task OK() { if (NotNetOrConnection) { return; } if (CheckFields()) { SaveFields(BinTemplate); try { if (CreateMode) { await NAV.CreateBinTemplate(BinTemplate, ACD.Default).ConfigureAwait(true); await Navigation.PopAsync(); } else { await NAV.ModifyBinTemplate(BinTemplate, ACD.Default).ConfigureAwait(true); await Navigation.PopAsync(); } } catch (Exception e) { System.Diagnostics.Debug.WriteLine(e.Message); State = ModelState.Error; ErrorText = e.Message; } } }