diff --git a/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml b/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml
index 7050420..8a2cd87 100644
--- a/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml
+++ b/.idea/.idea.EvoCalculator.Core/.idea/workspace.xml
@@ -14,20 +14,9 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -59,6 +48,7 @@
+
@@ -72,6 +62,7 @@
+
@@ -115,7 +106,6 @@
-
@@ -126,9 +116,10 @@
-
+
+
@@ -239,7 +230,7 @@
-
+
1602593830686
@@ -325,7 +316,14 @@
1606071900277
-
+
+ 1606075248419
+
+
+
+ 1606075248419
+
+
@@ -360,7 +358,8 @@
-
+
+
@@ -379,131 +378,131 @@
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
@@ -530,10 +529,10 @@
-
+
-
+
@@ -550,11 +549,11 @@
-
+
-
+
@@ -565,23 +564,6 @@
-
-
-
- file://$PROJECT_DIR$/EvoCalculator.Core.Calculation/Columns/CashflowMSFOColumn.cs
- 13
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/EvoCalculator.Core.Calculation/Columns/InterestColumn.cs b/EvoCalculator.Core.Calculation/Columns/InterestColumn.cs
index dfc59ec..59a85de 100644
--- a/EvoCalculator.Core.Calculation/Columns/InterestColumn.cs
+++ b/EvoCalculator.Core.Calculation/Columns/InterestColumn.cs
@@ -11,7 +11,7 @@ namespace EvoCalculator.Core.Calculation.Columns
public void PostCheck(SumColumn sumColumn)
{
- for (var i = 0; i < Values.Skip(1).ToList().Count; i++)
+ for (var i = 1; i < Values.Skip(1).ToList().Count; i++)
if (Values[i] > sumColumn.Values[i])
{
throw new Exception(
diff --git a/EvoCalculator.Core/Controllers/v1/CalculationController.cs b/EvoCalculator.Core/Controllers/v1/CalculationController.cs
index c3ebf59..d040c1d 100644
--- a/EvoCalculator.Core/Controllers/v1/CalculationController.cs
+++ b/EvoCalculator.Core/Controllers/v1/CalculationController.cs
@@ -7,6 +7,7 @@ using EvoCalculator.Core.Models.Calculation.Models.Request;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
+using Newtonsoft.Json.Serialization;
namespace EvoCalculator.Core.Controllers.V1
{
@@ -322,8 +323,13 @@ namespace EvoCalculator.Core.Controllers.V1
};
Response.ContentType = "application/json";
+
await Response.WriteAsync(JsonConvert.SerializeObject(res,
- new JsonSerializerSettings {Formatting = Formatting.Indented}));
+ new JsonSerializerSettings
+ {
+ Formatting = Formatting.Indented,
+ ContractResolver = new CamelCasePropertyNamesContractResolver()
+ }));
}
catch (Exception ex)
{