public IActionResult Index()
        {
            var lc = _locationRepo.GetAllMappedLocations().ToList();
            var mv = _movieRepo.GetAllMappedMovies().ToList();
            //var mmv = _context.Movies.ToList();
            //var llc = _context.Locations.ToList();
            var tuple = Tuple.Create(lc, mv);

            return(View(tuple));
        }
示例#2
0
        public IActionResult Index()
        {
            var location = _locationRepo.GetAllMappedLocations();

            return(View(location));
        }
示例#3
0
 public IActionResult Create()
 {
     ViewBag.Locations = new SelectList(_locationRepo.GetAllMappedLocations(), "Id", "Name");
     return(View());
 }