Browse Source

typo

develop-old
Robin Thoni 7 years ago
parent
commit
dde442b68a
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Luticate2.Utils/Controllers/LuCrudController.cs

+ 8
- 8
Luticate2.Utils/Controllers/LuCrudController.cs View File

14
         where TDboUpdate : class
14
         where TDboUpdate : class
15
         where TBusiness : ILuCrudInterface<TDboCreate, TDboRead, TDboUpdate, TId>
15
         where TBusiness : ILuCrudInterface<TDboCreate, TDboRead, TDboUpdate, TId>
16
     {
16
     {
17
-        protected readonly TBusiness Busines;
17
+        protected readonly TBusiness Business;
18
 
18
 
19
-        protected LuCrudController(TBusiness busines, IOptions<LuUtilsOptionsDbo> luUtilsOptionsDbo) : base(luUtilsOptionsDbo)
19
+        protected LuCrudController(TBusiness business, IOptions<LuUtilsOptionsDbo> luUtilsOptionsDbo) : base(luUtilsOptionsDbo)
20
         {
20
         {
21
-            Busines = busines;
21
+            Business = business;
22
         }
22
         }
23
 
23
 
24
         [HttpGet]
24
         [HttpGet]
25
         [Route("[controller]/{id}")]
25
         [Route("[controller]/{id}")]
26
         public virtual LuApiWrapperDbo<TDboRead> GetSingleById([Required]TId id)
26
         public virtual LuApiWrapperDbo<TDboRead> GetSingleById([Required]TId id)
27
         {
27
         {
28
-            return Handle(Busines.GetSingleById(id));
28
+            return Handle(Business.GetSingleById(id));
29
         }
29
         }
30
 
30
 
31
         [HttpGet]
31
         [HttpGet]
32
         [Route("[controller]")]
32
         [Route("[controller]")]
33
         public virtual LuApiWrapperDbo<LuPaginatedDbo<TDboRead>> GetMultiple([Required]LuPaginatedRequestDbo request)
33
         public virtual LuApiWrapperDbo<LuPaginatedDbo<TDboRead>> GetMultiple([Required]LuPaginatedRequestDbo request)
34
         {
34
         {
35
-            return Handle(Busines.GetMultiple(request));
35
+            return Handle(Business.GetMultiple(request));
36
         }
36
         }
37
 
37
 
38
         [HttpPost]
38
         [HttpPost]
39
         [Route("[controller]")]
39
         [Route("[controller]")]
40
         public virtual LuApiWrapperDbo<TDboRead> AddDbo([FromBody][Required]TDboCreate data)
40
         public virtual LuApiWrapperDbo<TDboRead> AddDbo([FromBody][Required]TDboCreate data)
41
         {
41
         {
42
-            return Handle(Busines.AddDbo(data));
42
+            return Handle(Business.AddDbo(data));
43
         }
43
         }
44
 
44
 
45
         [HttpPost]
45
         [HttpPost]
46
         [Route("[controller]/{id}")]
46
         [Route("[controller]/{id}")]
47
         public virtual LuApiWrapperDbo<TDboRead> EditSingleByIdDbo([Required]TId id, [FromBody][Required]TDboUpdate data)
47
         public virtual LuApiWrapperDbo<TDboRead> EditSingleByIdDbo([Required]TId id, [FromBody][Required]TDboUpdate data)
48
         {
48
         {
49
-            return Handle(Busines.EditSingleByIdDbo(id, data));
49
+            return Handle(Business.EditSingleByIdDbo(id, data));
50
         }
50
         }
51
 
51
 
52
         [HttpDelete]
52
         [HttpDelete]
53
         [Route("[controller]/{id}")]
53
         [Route("[controller]/{id}")]
54
         public virtual LuApiWrapperDbo<TDboRead> Delete([Required]TId id)
54
         public virtual LuApiWrapperDbo<TDboRead> Delete([Required]TId id)
55
         {
55
         {
56
-            return Handle(Busines.DeleteSingleByIdDbo(id));
56
+            return Handle(Business.DeleteSingleByIdDbo(id));
57
         }
57
         }
58
     }
58
     }
59
 }
59
 }

Loading…
Cancel
Save