Beispiel #1
0
        public async Task <IActionResult> DeleteConfirmed(int id, IFormCollection collection)
        {
            try
            {
                // TODO: Add delete logic here
                await _promo.DeletePromotionWithId(id);

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(RedirectToAction("Error", "Home"));
            }
        }