public async Task <ActionResult> Index() { var modelCOT = await _cultureObjectsViewModelService.GetAllTheatersForUnregisteredUsers(); var modelCOC = await _cultureObjectsViewModelService.GetAllCinemasForUnregisteredUsers(); modelCOC.Items.AddRange(modelCOT.Items); ViewModels.Reservation.ReservationItemViewModel vm = new ViewModels.Reservation.ReservationItemViewModel(); IEnumerable <CinemaItemViewModel> ttt = modelCOC.Items; vm.MoviesList = new SelectList(ttt, "Id", "Name"); MrsContext mrs = new MrsContext(); var getProjections = mrs.Projections.ToList(); vm.ProjectionList = new SelectList(getProjections, "Id", "ProjectionName"); return(View(vm)); }
/// <summary> /// Gets the theaters view model asynchronous. /// </summary> /// <returns></returns> private async Task <CinemasViewModel> GetTheatersViewModelAsync() { return(await _cultureObjectsViewModelService.GetAllTheatersForUnregisteredUsers()); }