Browse Source

fixed wrapper dbo case

tags/v0.2.6
Robin Thoni 8 years ago
parent
commit
6869093f21

+ 1
- 1
Luticate2.Utils/Controllers/LuController.cs View File

@@ -19,7 +19,7 @@ namespace Luticate2.Utils.Controllers
19 19
                     code = 200,
20 20
                     data = result.Data,
21 21
                     message = null,
22
-                    Version = LuUtilsExtensions.Options.Version
22
+                    version = LuUtilsExtensions.Options.Version
23 23
                 };
24 24
             }
25 25
             throw new LuResultException(result.To<object>());

+ 1
- 1
Luticate2.Utils/Dbo/Basic/LuApiWrapperDbo.cs View File

@@ -8,6 +8,6 @@
8 8
 
9 9
         public T data { get; set; }
10 10
 
11
-        public string Version { get; set; }
11
+        public string version { get; set; }
12 12
     }
13 13
 }

+ 2
- 2
Luticate2.Utils/Middlewares/LuExceptionMiddleware.cs View File

@@ -36,7 +36,7 @@ namespace Luticate2.Utils.Middlewares
36 36
                     code = e.Result.GetHttpCode(),
37 37
                     data = null,
38 38
                     message = e.Result.PublicDetails ?? e.Result.GetHttpString(),
39
-                    Version = LuUtilsExtensions.Options.Version
39
+                    version = LuUtilsExtensions.Options.Version
40 40
                 })).ConfigureAwait(false);
41 41
             }
42 42
             catch (Exception e)
@@ -50,7 +50,7 @@ namespace Luticate2.Utils.Middlewares
50 50
                     code = 500,
51 51
                     data = null,
52 52
                     message = "Internal Error",
53
-                    Version = LuUtilsExtensions.Options.Version
53
+                    version = LuUtilsExtensions.Options.Version
54 54
                 })).ConfigureAwait(false);
55 55
             }
56 56
         }

Loading…
Cancel
Save