private static void AddGridSpot(string letter, int number, PlayerInfoModel model) { GridSpotModel spot = new GridSpotModel(); spot.SpotLetter = letter; spot.SpotNumber = number; spot.Status = GridSpotStatus.Empty; model.ShotGrid.Add(spot); // Adding spot object to a ShotGrid }
private static void AddGridSpot(PlayerInfoModel model, string letter, int number) { GridSpotModel spot = new GridSpotModel(); spot.SpotLetter = letter; spot.SpotNumber = number; spot.Status = GridSpotStatus.Empty; model.ShotGrid.Add(spot); }
private static void AddGridSpot(PlayerInfoModel model, string letter, int number) { var spot = new GridSpotModel { SpotLetter = letter, SpotNumber = number, Status = GridSpotStatus.Empty }; model.ShotGrid.Add(spot); }