Пример #1
0
 private async Task CreateOrUpdateContent()
 {
     if (_content.Id.HasValue)
     {
         await ContentService.UpdateAsync(_content);
     }
     else
     {
         await ContentService.CreateAsync(_content);
     }
 }
Пример #2
0
        protected override async Task CreateActionAsync()
        {
            await ContentService.CreateAsync(Entity);

            NavigationManager.NavigateTo($"asset/{Entity.Id}");
        }
Пример #3
0
 public async Task <ContentEditModel> Create(string contentType)
 {
     return(await _content.CreateAsync(contentType));
 }