Ejemplo n.º 1
0
        /// <summary>
        /// 修改租户功能
        /// </summary>
        /// <param name="Id"></param>
        private async void TenantChangeFeatures()
        {
            GetTenantFeaturesEditOutput output = null;

            await SetBusyAsync(async() =>
            {
                await WebRequest.Execute(() => appService.GetTenantFeaturesForEdit(new EntityDto(SelectedItem.Id)),
                                         async result =>
                {
                    output = result;
                    await Task.CompletedTask;
                });
            });

            if (output == null)
            {
                return;
            }

            DialogParameters param = new DialogParameters();

            param.Add("Id", SelectedItem.Id);
            param.Add("Value", output);

            await dialog.ShowDialogAsync(AppViewManager.TenantChangeFeatures, param);
        }
 public TenantFeaturesEditViewModel(Tenant tenant, GetTenantFeaturesEditOutput output)
 {
     Tenant = tenant;
     output.MapTo(this);
 }