示例#1
0
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            TempData["active"] = "blog";
            await _blogApiService.DeleteAsync(id);

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

            return(RedirectToAction("Index"));
        }
示例#3
0
        public async Task <IActionResult> Delete(int id)
        {
            await _blogApiService.DeleteAsync(id);

            return(RedirectToAction("Index"));
        }