Beispiel #1
0
        async public Task <ActionResult> CreateMatch()
        {
            string userId = User.Identity.GetUserId();
            GladiatorOpponentsViewModel model = new GladiatorOpponentsViewModel
            {
                Gladiators = await GladiatorHandler.GetCurrentGladiators(userId),
                Opponents  = await GladiatorHandler.GetRandomOpponents()
            };

            return(PartialView("_NewMatch", model));
        }