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
                     code = 200,
19
                     code = 200,
20
                     data = result.Data,
20
                     data = result.Data,
21
                     message = null,
21
                     message = null,
22
-                    Version = LuUtilsExtensions.Options.Version
22
+                    version = LuUtilsExtensions.Options.Version
23
                 };
23
                 };
24
             }
24
             }
25
             throw new LuResultException(result.To<object>());
25
             throw new LuResultException(result.To<object>());

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

8
 
8
 
9
         public T data { get; set; }
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
                     code = e.Result.GetHttpCode(),
36
                     code = e.Result.GetHttpCode(),
37
                     data = null,
37
                     data = null,
38
                     message = e.Result.PublicDetails ?? e.Result.GetHttpString(),
38
                     message = e.Result.PublicDetails ?? e.Result.GetHttpString(),
39
-                    Version = LuUtilsExtensions.Options.Version
39
+                    version = LuUtilsExtensions.Options.Version
40
                 })).ConfigureAwait(false);
40
                 })).ConfigureAwait(false);
41
             }
41
             }
42
             catch (Exception e)
42
             catch (Exception e)
50
                     code = 500,
50
                     code = 500,
51
                     data = null,
51
                     data = null,
52
                     message = "Internal Error",
52
                     message = "Internal Error",
53
-                    Version = LuUtilsExtensions.Options.Version
53
+                    version = LuUtilsExtensions.Options.Version
54
                 })).ConfigureAwait(false);
54
                 })).ConfigureAwait(false);
55
             }
55
             }
56
         }
56
         }

Loading…
Cancel
Save