protected override async Task OnInitializedAsync() { catalogId = base.Options; catalogEntity = await catalogService.FindAsync(catalogId); await base.OnInitializedAsync(); }
protected override async Task OnInitializedAsync() { catalogId = base.Options ?? null; if (StringUtils.IsBlank(catalogId)) { catalogEntity = new BCatalogEntity(); } else { catalogEntity = await catalogService.FindCloneAsync(catalogId); } await base.OnInitializedAsync(); }