public IActionResult ShowingEdit(int index) { var showing = showingService.GetById(index); var movies = movieService.Get().FindAll(a => a.EndDate >= DateTime.Today).ToList(); var cinemas = cinemaLocationService.GetWithHalls(); List <Tuple <int, string> > cinemaLocations = new List <Tuple <int, string> >(); string temp; foreach (var item in cinemas) { foreach (var hall in item.CinemaHalls) { temp = item.CinemaName + ", Hall " + hall.Name; cinemaLocations.Add(new Tuple <int, string>(hall.Id, temp)); } } return(View(new ShowingCreateAndEditViewModel() { showing = showing, cinemaLocations = cinemaLocations, movies = movies, IsSuccessfull = true })); }