Skip to content

Commit f5e5c6e

Browse files
Feat: Adicionando modelo para categoria da tarefa.
Entidade Categora agora se encontra em Domínio.
1 parent 9ec168a commit f5e5c6e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Models/CategorieTaskModel.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

Services/CategorieTaskService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Microsoft.AspNetCore.Mvc;
22
using Todo.Data;
3+
using Todo.Domain;
34
using Todo.Models;
45

56
namespace 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
{

0 commit comments

Comments
 (0)