public Penalty GetPenalty(int id) { foreach (var penalty in DemoData.GetPenalties()) { if (penalty.Id == id) { return(penalty); } } return(null); }
public IReadOnlyList <Penalty> GetPenalties() { return(DemoData.GetPenalties()); }