protected async System.Threading.Tasks.Task Load()
        {
            canEdit = true;

            var sampleGetOrderByIdResult = await Sample.GetOrderById(id : Id);

            order = sampleGetOrderByIdResult;
        }
Beispiel #2
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(Anno.Models.Sample.Order args)
        {
            var result = await DialogService.OpenAsync <EditOrder>("Edit Order", new Dictionary <string, object>() { { "Id", args.Id } });

            grid0.Reload();

            await InvokeAsync(() => { StateHasChanged(); });
        }
        protected async System.Threading.Tasks.Task Form0Submit(Anno.Models.Sample.Order args)
        {
            try
            {
                var sampleUpdateOrderResult = await Sample.UpdateOrder(id : Id, order : order);

                DialogService.Close(order);
            }
            catch (Exception sampleUpdateOrderException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update Order");
            }
        }
 protected async System.Threading.Tasks.Task Load()
 {
     order = new Anno.Models.Sample.Order();
 }