protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Category args)
        {
            try
            {
                var northwindCreateCategoryResult = await Northwind.CreateCategory(category);

                DialogService.Close(category);
            }
            catch (Exception northwindCreateCategoryException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Category!");
            }
        }
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Category args)
        {
            var result = await DialogService.OpenAsync <EditCategory>("Edit Category", new Dictionary <string, object>() { { "CategoryID", args.CategoryID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
Exemplo n.º 3
0
 partial void OnCategoryUpdated(Models.Northwind.Category item);
 protected async System.Threading.Tasks.Task Load()
 {
     category = new NorthwindBlazor.Models.Northwind.Category();
 }
Exemplo n.º 5
0
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetCategoryByCategoryIdResult = await Northwind.GetCategoryByCategoryId(int.Parse($"{CategoryID}"));

            category = northwindGetCategoryByCategoryIdResult;
        }