async Task Save()
        {
            if (String.IsNullOrWhiteSpace(Credit.creditID))
            {
                await _pageService.DisplayAlert("Error", "Please enter CreditID", "OK");

                return;
            }
            if (Credit.id == 0)
            {
                await _creditStore.AddCredit(Credit);

                CreditAdded?.Invoke(this, Credit);
            }
            else
            {
                await _creditStore.UpdateCredit(Credit);

                CreditUpdated?.Invoke(this, Credit);
            }
            await _pageService.PopModalAsync();
        }
Beispiel #2
0
 public void hkjhkjh()
 {
     CreditUpdated?.Invoke(this, EventArgs.Empty);
 }