protected override async Task OnInitializedAsync() { var result = await CategoryGateway.GetCategoriesWithIdNameAndDescription(); if (result.IsValid) { Categories = result.Success; } IsValid = result.IsValid; }