Exemplo n.º 1
0
        public async Task <IActionResult> Delete(int id)
        {
            int result = await articlesService.DeleteArticleAsync(id);

            if (result > 0)
            {
                TempData["articleDeleted"] = true;
            }

            return(RedirectToAction("Index", "Home", new { area = "Administration" }));
        }