private static bool CompareSelections(SportEventSelection x, SportEventSelection y) { return (x.Description == y.Description && x.Id == y.Id && x.Number == y.Number && x.Participant == y.Participant && x.Odds == y.Odds); }
private static SportEventSelection ParseSelection(XElement selectionImport) { var selection = new SportEventSelection { Id = int.Parse(selectionImport.Attribute("ID").Value), Number = int.Parse(selectionImport.Attribute("Number").Value), Odds = decimal.Parse(selectionImport.Attribute("OddsDecimal").Value), Participant = GetParticipantTypeByName(selectionImport.Attribute("Participant")?.Value), Description = selectionImport.Attribute("Description")?.Value }; return(selection); }