예제 #1
0
        protected async System.Threading.Tasks.Task Form0Submit(C4G.Models.C4G.Recurso args)
        {
            try
            {
                var c4GUpdateRecursoResult = await C4G.UpdateRecurso(id_recursos, recurso);

                DialogService.Close(recurso);
            }
            catch (Exception c4GUpdateRecursoException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Recurso");
            }
        }
예제 #2
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(C4G.Models.C4G.Recurso args)
        {
            var dialogResult = await DialogService.OpenAsync <EditRecurso>("Edit Recurso", new Dictionary <string, object>() { { "id_recursos", args.id_recursos } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
예제 #3
0
        protected async System.Threading.Tasks.Task Load()
        {
            var c4GGetRecursoByidRecursosResult = await C4G.GetRecursoByidRecursos(id_recursos);

            recurso = c4GGetRecursoByidRecursosResult;
        }
 protected async System.Threading.Tasks.Task Load()
 {
     recurso = new C4G.Models.C4G.Recurso()
     {
     };
 }