Beispiel #1
0
        public virtual async System.Threading.Tasks.Task <Microsoft.AspNetCore.Mvc.IActionResult> DeleteConfirmed(int id)
        {
            if (!await Exists(id))
            {
                return(NotFound());
            }

            await Service.DeleteAsync(id);

            return(RedirectToAction(nameof(Index)));
        }