public async Task <IActionResult> Index()
        {
            var matches = await Db.GetMatchesAsync();

            var model = new MatchListModel(matches);

            return(View(model));
        }
Exemplo n.º 2
0
        public MainFormPresenter(IMainForm mainForm, MatchListModel model, IMessageBoxService messageService)
        {
            this.mainForm       = mainForm;
            this.model          = model;
            this.messageService = messageService;

            this.mainForm.UpdateLine += MainForm_UpdateLine;
        }
Exemplo n.º 3
0
        public MatchListModel GetMatchListModel(IEnumerable<MatchModel> matchModels)
        {
            var scoreListModel = new MatchListModel
            {
                Items = matchModels != null ? matchModels.ToList() : new List<MatchModel>()
            };

            return scoreListModel;
        }
 public MatchHistoryViewModel(MatchListModel matches)
 {
     matchList = matches;
 }
Exemplo n.º 5
0
 // constructors
 public SummonerInfoModel(SummonerModel summoner, List <LeagueEntryModel> entries, MatchListModel matchlist)
 {
     Summoner  = summoner;
     Entries   = entries;
     Matchlist = matchlist;
 }