Example #1
0
        public async Task <IActionResult> Delete(Guid id)
        {
            await _appService.DeleteAsync(id);

            return(CreateResponseOnDelete(_name));
        }
Example #2
0
        public async Task <IActionResult> OnPostDelete(Guid id)
        {
            await _companyAppService.DeleteAsync(id);

            return(RedirectToPage("Index"));
        }