//Used on creation of the horse bets. public string ToStringInDetail() { return($"Bet ID: {BetIdNo + Environment.NewLine}" + $"Horse: {HorseName}{Environment.NewLine}" + $"Race Course: {Racecourse}{Environment.NewLine}" + $"Date of Race: ({DateOfRace.ToString("yyyy/MM/dd")}){Environment.NewLine}" + $"Race Outcome: {Outcome}{Environment.NewLine}" + $"Amount {Outcome}: {AmountWonOrLost:C2}"); }
//Used to list the horse bets. public override string ToString() { return($"BET: {BetIdNo} - {HorseName.ToUpper()} - {Racecourse.ToString().ToUpper()} - ({DateOfRace.ToString("yyyy/MM/dd")}) - {Outcome.ToUpper()} - {AmountWonOrLost:C2}{Environment.NewLine}"); }