Exemple #1
0
        protected async System.Threading.Tasks.Task Load()
        {
            canEdit = true;

            var sampleGetProductByIdResult = await Sample.GetProductById(id : Id);

            product = sampleGetProductByIdResult;
        }
Exemple #2
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(Anno.Models.Sample.Product args)
        {
            var result = await DialogService.OpenAsync <EditProduct>("Edit Product", new Dictionary <string, object>() { { "Id", args.Id } });

            grid0.Reload();

            await InvokeAsync(() => { StateHasChanged(); });
        }
Exemple #3
0
        protected async System.Threading.Tasks.Task Form0Submit(Anno.Models.Sample.Product args)
        {
            try
            {
                var sampleUpdateProductResult = await Sample.UpdateProduct(id : Id, product : product);

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