public static Seat Create(Guid id, int number, Guid tableID, Guid?playerID) { var seat = new Seat(id, number); seat.Table = Table.Get(tableID); seat.Player = playerID.HasValue ? DNDUser.Get(playerID.Value) : null; // return(seat); }
public static Game Create(Guid id, string name, string campaignName, string notes, int?session, GameTier tier, Guid gameDayID, Guid tableID, Guid?dmID) { var game = new Game(id, name); game.CampaignName = campaignName; game.Notes = notes; game.SessionNumber = session; game.Tier = tier; game.GameDay = GameDay.Get(gameDayID); game.Table = Table.Get(tableID); game.DM = dmID.HasValue ? DNDUser.Get(dmID.Value) : null; // return(game); }