Exemplo n.º 1
0
        public IActionResult DeleteConfirmed(int id)
        {
            try
            {
                _cust.DeleteCustomerProductWithId(id);

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