private async void ValidateResponseUpdateAffilite(ResponseUpdateAffiliate response) { await dialogService.ShowMessage(response.Title, response.Message); if (response.Success && response.StatusCode == 0) { await LoadPersonalData(); return; } }
public async void Update() { if (ValidateData()) { dialogService.ShowProgress(); RequestUpdateAffiliate request = new RequestUpdateAffiliate { CellPhoneNumber = CellPhoneNumber, Email = Email, }; ResponseUpdateAffiliate response = await apiService.UpdateAffiliate(request); dialogService.HideProgress(); ValidateResponseUpdateAffilite(response); } }