async public static Task CreateMatch(MatchBindingModel model, string userId) { Match match = new Match(model); db.Matches.Add(match); await db.SaveChangesAsync(); }
public Match(MatchBindingModel model) : this() { GladiatorID = NextAttackerID = model.GladiatorID; OpponentID = model.OpponentID; }