示例#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());
        }
示例#2
0
        public ViewResult DeleteSportsHall(int hallId)
        {
            SportsHall deletedHall = sportsHallRepository.DeleteHall(hallId);

            return(View("SportsHallList"));
        }