public async void SaveInfoAccount(string fio, string email) { if (fio != "" && email != "") { progress.IsVisible = true; FrameBtnLogin.IsVisible = false; progress.IsVisible = true; CommonResult result = await _server.UpdateProfileConst(email, fio); if (result.Error == null) { Console.WriteLine(result.ToString()); Console.WriteLine("Отправлено"); await DisplayAlert("", AppResources.SuccessProfile, "OK"); FrameBtnLogin.IsVisible = true; progress.IsVisible = false; } else { Console.WriteLine("---ОШИБКА---"); Console.WriteLine(result.ToString()); FrameBtnLogin.IsVisible = true; progress.IsVisible = false; if (Device.RuntimePlatform == Device.iOS) { await DisplayAlert(AppResources.ErrorTitle, result.Error, "OK"); } else { DependencyService.Get <IMessage>().ShortAlert(result.Error); } } progress.IsVisible = false; FrameBtnLogin.IsVisible = true; } else { if (fio == "" && email == "") { await DisplayAlert("", $"{AppResources.ErrorFills} {AppResources.FIO} {AppResources.And} E-mail", "OK"); } else if (fio == "") { await DisplayAlert("", $"{AppResources.ErrorFill} {AppResources.FIO}", "OK"); } else if (email == "") { await DisplayAlert("", $"{AppResources.ErrorFill} E-mail", "OK"); } } }