コード例 #1
0
        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!");
            }
        }
コード例 #2
0
        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(); });
        }
コード例 #3
0
 partial void OnCategoryUpdated(Models.Northwind.Category item);
コード例 #4
0
 protected async System.Threading.Tasks.Task Load()
 {
     category = new NorthwindBlazor.Models.Northwind.Category();
 }
コード例 #5
0
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetCategoryByCategoryIdResult = await Northwind.GetCategoryByCategoryId(int.Parse($"{CategoryID}"));

            category = northwindGetCategoryByCategoryIdResult;
        }