// DODAVANJE KINA (VIŠE NIJE OBUHVAĆENO U OVOM SEGMENTU)
        //[HttpPost]
        //public ActionResult AddCinema()
        //{
        //    AddCinemaVM cinema = new AddCinemaVM();
        //    cinema.Countries = principal.Country.Select(x => new SelectListItem()
        //    {
        //        Text = x.Name,
        //        Value = x.CountryID.ToString()
        //    }).ToList();

        //    cinema.Cities = principal.Cities.Select(x => new SelectListItem()
        //    {
        //        Text = x.Name,
        //        Value = x.CityID.ToString()
        //    }).ToList();

        //    cinema.Addreses = principal.Addresses.Select(x => new SelectListItem()
        //    {
        //        Text = x.AddressLine1,
        //        Value = x.AddressID.ToString()
        //    }).ToList();

        //    return PartialView("AddCinema", cinema);
        //}

        public ActionResult AddCinemaHall()
        {
            AddCinemaVM model = new AddCinemaVM();

            model.Cinema = principal.Cinemas.First();

            return(PartialView("AddCinemaHall", model));
        }
        public ActionResult SubmitCinemaHall(AddCinemaVM model)
        {
            // if (!ModelState.IsValid)
            //    return PartialView("AddCinemaHall", model);

            CinemaHall ch = new CinemaHall();

            ch.CinemaID  = model.Cinema.CinemaID;
            ch.Name      = model.CinemaHall.Name;
            ch.IsDeleted = false;
            principal.CinemaHalls.Add(ch);
            principal.SaveChanges();

            model.CinemaHall = ch;

            return(PartialView("AddTechType", model));
        }
        public ActionResult SubmitTechType(AddCinemaVM model, string[] check)
        {
            foreach (string s in check)
            {
                CinemaHallTechnologyType tt = new CinemaHallTechnologyType();

                tt.CinemaHallID = model.CinemaHall.CinemaHallID;

                tt.TechnologyTypeID = int.Parse(s);
                tt.IsDeleted        = false;
                principal.CinemaHallTechnologyTypes.Add(tt);
                principal.SaveChanges();
            }


            return(RedirectToAction("GetCinemaHalls", new { layout = "~/Areas/Local/Views/Shared/_LayoutProjectionManager.cshtml" }));
        }