Example #1
0
        async public static Task CreateMatch(MatchBindingModel model, string userId)
        {
            Match match = new Match(model);

            db.Matches.Add(match);
            await db.SaveChangesAsync();
        }
Example #2
0
 public Match(MatchBindingModel model) : this()
 {
     GladiatorID = NextAttackerID = model.GladiatorID;
     OpponentID  = model.OpponentID;
 }