public EditTourViewModel(List <Team> teams, IReadOnlyCollection <Match> matches, IList <FootballScoreViewModel> scorelist, TourDto tourDto) { Teamlist = GenerateSelectList(teams); TourDto = tourDto; MatchTable = GenerateMatchTable(matches, scorelist); SubmitTextArea = new SubmitTextAreaViewModel(tourDto.TourId); }
//public EditPredictionsViewModel(List<SelectListItem> expertlist, NewTourDto newTourDto, MatchTableViewModel matchTable) //{ // NewTourDto = newTourDto; // Expertlist = expertlist; // MatchTable = matchTable; // SubmitTextArea = new SubmitTextAreaViewModel(); //} public EditPredictionsViewModel(IReadOnlyCollection <Match> matches, IReadOnlyList <Expert> experts, List <FootballScoreViewModel> scorelist, TourDto tourDto, int expertId, bool addPredictionSuccess) { TourDto = tourDto; Expertlist = GenerateSelectList(experts); MatchTable = GenerateMatchTable(matches, scorelist); SubmitTextArea = new SubmitTextAreaViewModel(); SelectedExpertId = expertId; SubmitTextArea.TourId = tourDto.TourId; AddPredictionsSuccess = addPredictionSuccess; }