protected virtual async Task UpdateAuthorAsync() { await AuthorAppService.UpdateAsync(EditingAuthorId, EditingAuthor); await GetAuthorsAsync(); EditAuthorModal.Hide(); }
private async Task UpdateAuthorAsync() { await AuthorAppService.UpdateAsync(EditingAuthorId, EditingAuthor); await GetAuthorsAsync(); EditAuthorModal.Hide(); }
protected virtual async Task CreateEntityAsync() { await AuthorAppService.CreateAsync(NewAuthor); await GetAuthorsAsync(); CreateAuthorModal.Hide(); }
private async Task CreateAuthorAsync() { await AuthorAppService.CreateAsync(NewAuthor); await GetAuthorsAsync(); CreateAuthorModal.Hide(); }
private async Task UpdateAuthorAsync() { if (await EditValidationsRef.ValidateAll()) { await AuthorAppService.UpdateAsync(EditingAuthorId, EditingAuthor); await GetAuthorsAsync(); await EditAuthorModal.Hide(); } }
private async Task CreateAuthorAsync() { if (await CreateValidationsRef.ValidateAll()) { await AuthorAppService.CreateAsync(NewAuthor); await GetAuthorsAsync(); await CreateAuthorModal.Hide(); } }
private async Task DeleteAuthorAsync(AuthorDto author) { var confirmMessage = L["AuthorDeletionConfirmationMessage", author.Name]; if (!await UiMessageService.ConfirmAsync(confirmMessage)) { return; } await AuthorAppService.DeleteAsync(author.Id); await GetAuthorsAsync(); }
private async Task GetAuthorsAsync() { var result = await AuthorAppService.GetListAsync( new GetAuthorListDto { MaxResultCount = PageSize, SkipCount = CurrentPage * PageSize, Sorting = CurrentSorting } ); AuthorList = result.Items; TotalCount = (int)result.TotalCount; }
public ProductController(AuthorAppService authorAppService, BookAppService bookAppService) { _authorAppService = authorAppService; _bookAppService = bookAppService; }