public async System.Threading.Tasks.Task <Domain.Models.ResponseModels.FormGroupFormModel> GetCategorysFormListAsync(int formGroupId) { Domain.Models.RequestModels.FormGroupFormModel domainUser = new Domain.Models.RequestModels.FormGroupFormModel(); domainUser.ApplicationId = Settings.GetApplicationId(); domainUser.SerialNumber = Settings.GetSerialNumber(); domainUser.Version = Settings.GetVersion(); domainUser.AuthToken = Settings.GetAuthorizationToken(); domainUser.AccessToken = Settings.GetAccessToken(); domainUser.FormGroupId = formGroupId; // TODO: Call the REST Service for authentication Domain.Models.ResponseModels.FormGroupFormModel res = await _authService.GetCategorysFormListAsync(domainUser); return(res); }
protected override async void OnAppearing() { base.OnAppearing(); record = await ViewModel.GetCategorysFormListAsync(formGroupIdpvt); if (record != null) { ac.IsVisible = false; stkFinal.IsVisible = true; listForms.ItemsSource = record.Forms; this.BackgroundColor = Color.White; this.Opacity = 1; } }