Skip to content

Commit

Permalink
Refine API
Browse files Browse the repository at this point in the history
  • Loading branch information
alvachien committed Nov 12, 2017
1 parent 48997f9 commit 0cdcab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/achihapi/Controllers/FinanceCalcUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static List<LoanCalcResult> LoanCalculate(LoanCalcViewModel datInput)
if (datInput.TotalAmount <= 0)
throw new Exception("Total amount must large than zero!");
if (datInput.TotalMonths <= 0)
throw new Exception("Total amount must large than zero");
throw new Exception("Total months must large than zero");
if (datInput.StartDate == null)
throw new Exception("Start date is must");

Expand Down

0 comments on commit 0cdcab3

Please sign in to comment.