private void OpenCreateAuthorModal() { CreateValidationsRef.ClearAll(); NewAuthor = new CreateAuthorDto(); CreateAuthorModal.Show(); }
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 CreateAuthorAsync() { if (await CreateValidationsRef.ValidateAll()) { await AuthorAppService.CreateAsync(NewAuthor); await GetAuthorsAsync(); await CreateAuthorModal.Hide(); } }
private void CloseCreateAuthorModal() { CreateAuthorModal.Hide(); }
private void OpenCreateAuthorModal() { NewAuthor = new CreateAuthorDto(); CreateAuthorModal.Show(); }