Robin Thoni před 7 roky
rodič
revize
dde442b68a
1 změnil soubory, kde provedl 8 přidání a 8 odebrání
  1. 8
    8
      Luticate2.Utils/Controllers/LuCrudController.cs

+ 8
- 8
Luticate2.Utils/Controllers/LuCrudController.cs Zobrazit soubor

@@ -14,46 +14,46 @@ namespace Luticate2.Utils.Controllers
14 14
         where TDboUpdate : class
15 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 24
         [HttpGet]
25 25
         [Route("[controller]/{id}")]
26 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 31
         [HttpGet]
32 32
         [Route("[controller]")]
33 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 38
         [HttpPost]
39 39
         [Route("[controller]")]
40 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 45
         [HttpPost]
46 46
         [Route("[controller]/{id}")]
47 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 52
         [HttpDelete]
53 53
         [Route("[controller]/{id}")]
54 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
 }

Načítá se…
Zrušit
Uložit