コード例 #1
0
        private async Task EditCarAsync()
        {
            try
            {
                var response = await carService.EditCar(editCarRequest, fragment.CarResponse.Id);

                if (response != null)
                {
                    Toast.MakeText(fragment.Context, "Zaktualizowano.", ToastLength.Long).Show();
                    fragment.InvokeEdited();
                }
            }
            catch (Exception exception)
            {
                Toast.MakeText(fragment.Context, exception.Message, ToastLength.Short).Show();
            }
        }