File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,8 @@ namespace Todo.Models
22{
33 public class CategorieTaskModel
44 {
5-
65 public int Id { get ; set ; }
76 public string ? Name { get ; set ; }
87 public string ? Description { get ; set ; }
9-
108 }
119}
Original file line number Diff line number Diff line change 11using Microsoft . AspNetCore . Mvc ;
22using Todo . Data ;
3+ using Todo . Domain ;
34using Todo . Models ;
45
56namespace Todo . Services
@@ -26,7 +27,7 @@ public IActionResult Get()
2627 }
2728 }
2829
29- public IActionResult CreateCategorieTask ( [ FromBody ] CategorieTaskEntity model )
30+ public IActionResult CreateCategorieTask ( [ FromBody ] CategorieTaskModel model )
3031 {
3132 try
3233 {
@@ -46,7 +47,7 @@ public IActionResult CreateCategorieTask([FromBody] CategorieTaskEntity model)
4647 }
4748 }
4849
49- public IActionResult UpdateCategorieTask ( [ FromBody ] CategorieTaskEntity model )
50+ public IActionResult UpdateCategorieTask ( [ FromBody ] CategorieTaskModel model )
5051 {
5152 try
5253 {
You can’t perform that action at this time.
0 commit comments