Esempio n. 1
0
        public IActionResult DeleteConfirmed(int id)
        {
            var restaurant = _restRepo.GetRestaurantById(id);

            _restRepo.DeleteRestaurant(restaurant);
            _restRepo.SaveChanges();
            return(RedirectToAction(nameof(Index)));
        }