public async Task <IActionResult> DeleteConfirmed(int id) { await _invoicesRepository.DeleteSupplierAsync(id); return(RedirectToAction(nameof(Index))); }