示例#1
0
        protected virtual async Task CreateEntityAsync()
        {
            await AuthorAppService.CreateAsync(NewAuthor);

            await GetAuthorsAsync();

            CreateAuthorModal.Hide();
        }
示例#2
0
        private async Task CreateAuthorAsync()
        {
            await AuthorAppService.CreateAsync(NewAuthor);

            await GetAuthorsAsync();

            CreateAuthorModal.Hide();
        }
示例#3
0
    private async Task CreateAuthorAsync()
    {
        if (await CreateValidationsRef.ValidateAll())
        {
            await AuthorAppService.CreateAsync(NewAuthor);
            await GetAuthorsAsync();

            await CreateAuthorModal.Hide();
        }
    }