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