private async Task CreateOrUpdateContent() { if (_content.Id.HasValue) { await ContentService.UpdateAsync(_content); } else { await ContentService.CreateAsync(_content); } }
protected override async Task CreateActionAsync() { await ContentService.CreateAsync(Entity); NavigationManager.NavigateTo($"asset/{Entity.Id}"); }
public async Task <ContentEditModel> Create(string contentType) { return(await _content.CreateAsync(contentType)); }