public async Task <IActionResult> DeleteConfirmed(int id) { TempData["active"] = "blog"; await _blogApiService.DeleteAsync(id); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> Delete(int id) { TempData["active"] = "blog"; await _blogApiService.DeleteAsync(id); return(RedirectToAction("Index")); }
public async Task <IActionResult> Delete(int id) { await _blogApiService.DeleteAsync(id); return(RedirectToAction("Index")); }