public IActionResult Delete(int id) { var Hall = repository.Halls.SingleOrDefault(x => x.ID == id); if (Hall == null) { return(NotFound()); } repository.DeleteHall(id); return(Get()); }
public ViewResult DeleteSportsHall(int hallId) { SportsHall deletedHall = sportsHallRepository.DeleteHall(hallId); return(View("SportsHallList")); }