private IList<OpenPosition> getPositions(OpenPositionsNeeded needed, int level, string desciption) { var listOfPos = new List<OpenPosition>(); if (needed.BassGuitar) { listOfPos.Add(CreatePosition("Bass Guitar", level, desciption)); } if (needed.Drums) { listOfPos.Add(CreatePosition("Drums", level, desciption)); } // other positions types go here return listOfPos; }
private IList <OpenPosition> getPositions(OpenPositionsNeeded needed, int level, string desciption) { var listOfPos = new List <OpenPosition>(); if (needed.BassGuitar) { listOfPos.Add(CreatePosition("Bass Guitar", level, desciption)); } if (needed.Drums) { listOfPos.Add(CreatePosition("Drums", level, desciption)); } // other positions types go here return(listOfPos); }