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

            db.Matches.Add(match);
            await db.SaveChangesAsync();
        }
コード例 #2
0
ファイル: Match.cs プロジェクト: Vamic/Game-Project
 public Match(MatchBindingModel model) : this()
 {
     GladiatorID = NextAttackerID = model.GladiatorID;
     OpponentID  = model.OpponentID;
 }