Esempio n. 1
0
        public IActionResult Delete(int id)
        {
            var Hall = repository.Halls.SingleOrDefault(x => x.ID == id);

            if (Hall == null)
            {
                return(NotFound());
            }
            repository.DeleteHall(id);
            return(Get());
        }
Esempio n. 2
0
        public ViewResult DeleteSportsHall(int hallId)
        {
            SportsHall deletedHall = sportsHallRepository.DeleteHall(hallId);

            return(View("SportsHallList"));
        }