Example #1
0
        protected override async Task OnInitializedAsync()
        {
            catalogId = base.Options;

            catalogEntity = await catalogService.FindAsync(catalogId);

            await base.OnInitializedAsync();
        }
Example #2
0
        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();
        }