public async Task <IActionResult> Delete(Guid id) { await _appService.DeleteAsync(id); return(CreateResponseOnDelete(_name)); }
public async Task <IActionResult> OnPostDelete(Guid id) { await _companyAppService.DeleteAsync(id); return(RedirectToPage("Index")); }