public async Task <HallDto> EditHall(int hallId, AddEditHallDto hall)
        {
            var editedHall = await _halesRepository.GetById(hallId);

            if (editedHall == null)
            {
                return(null);
            }
            editedHall.HallName = hall.Name;
            var result = await _halesRepository.Edit(editedHall);

            return(new HallDto(result));
        }
        public async Task <ShowingDto> AddShowing(AddShowingDto showing)
        {
            var movie = await _moviesRepository.GetById(showing.MovieId);

            var hall = await _halesRepository.GetById(showing.HallId);

            if (movie == null || hall == null)
            {
                return(null);
            }
            var newShowing = new Showing {
                ShowingDate  = showing.Date,
                ShowingMovie = movie,
                ShowingHall  = hall
            };
            var result = await _showingsRepository.Add(newShowing);

            return(new ShowingDto(result));
        }