protected async System.Threading.Tasks.Task Load()
        {
            var c4GGetInstituicosResult = await C4G.GetInstituicos();

            getInstituicosResult = c4GGetInstituicosResult;

            pessoa = new C4G.Models.C4G.Pessoa()
            {
            };
        }
Esempio n. 2
0
        protected async System.Threading.Tasks.Task Form0Submit(C4G.Models.C4G.Pessoa args)
        {
            try
            {
                var c4GUpdatePessoaResult = await C4G.UpdatePessoa(id_pessoa, pessoa);

                DialogService.Close(pessoa);
            }
            catch (Exception c4GUpdatePessoaException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Pessoa");
            }
        }
Esempio n. 3
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(C4G.Models.C4G.Pessoa args)
        {
            var dialogResult = await DialogService.OpenAsync <EditPessoa>("Edit Pessoa", new Dictionary <string, object>() { { "id_pessoa", args.id_pessoa } });

            await InvokeAsync(() => { StateHasChanged(); });
        }