Created
February 16, 2010 18:43
-
-
Save MarkBorcherding/305781 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public decimal? MonthlyPrice | |
| { | |
| get | |
| { | |
| try | |
| { | |
| return AddOnRates.Single(x => x.PaymentTerm == PaymentTerm.Monthly).Price; | |
| } catch(InvalidOperationException ex) | |
| { | |
| throw new InvalidOperationException("Monthly price for " + idAddOn + " was not found.",ex); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment