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)); }
public IActionResult Index() { var location = _locationRepo.GetAllMappedLocations(); return(View(location)); }
public IActionResult Create() { ViewBag.Locations = new SelectList(_locationRepo.GetAllMappedLocations(), "Id", "Name"); return(View()); }