Pārlūkot izejas kodu

Fix on timeshare weeks.

master
GJWilliams87 4 gadus atpakaļ
vecāks
revīzija
6b1e54efc2

+ 2
- 1
UnivateProperties_API/Containers/Timeshare/WeekDto.cs Parādīt failu

@@ -62,7 +62,8 @@ namespace UnivateProperties_API.Containers.Timeshare
62 62
             bool currentYear = split[9].Trim() == "Y";
63 63
             string amt = split[5].Trim();
64 64
             amt = amt.Replace('.', ',');
65
-            LevyAmount = Convert.ToDouble(amt);
65
+            if (double.TryParse(amt, out double dAmt))
66
+                LevyAmount = dAmt;
66 67
             DateTime tempDate = MyCommon.GetDateFromString(currentYear ? split[6].Trim() : split[13].Trim());
67 68
             if(tempDate != DateTime.MinValue)
68 69
             {

+ 4
- 4
UnivateProperties_API/Startup.cs Parādīt failu

@@ -181,10 +181,10 @@ namespace UnivateProperties_API
181 181
         public void Configure(IApplicationBuilder app, IHostingEnvironment env)
182 182
         {
183 183
             UpdateDatabase(app);
184
-            if (env.IsDevelopment())
185
-            {
186
-                app.UseDeveloperExceptionPage();
187
-            }
184
+            //if (env.IsDevelopment())
185
+            //{
186
+            app.UseDeveloperExceptionPage();
187
+            //}
188 188
             app.UseCors(x => x                
189 189
                 .AllowAnyOrigin()
190 190
                 .AllowAnyMethod()

Notiek ielāde…
Atcelt
Saglabāt