Skip to content

Commit 14ac511

Browse files
committed
remove CategoryUpdateDto from categories graphQL controler
1 parent 68ead97 commit 14ac511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NorthwindCRUD/ControllersGraphQL/CategoryController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public CategoryDto Create(CategoryDto model)
5050
}
5151

5252
[Mutation]
53-
public CategoryDto? Update(int id, CategoryUpdateDto model)
53+
public CategoryDto? Update(int id, CategoryDto model)
5454
{
55-
var mappedModel = this.mapper.Map<CategoryUpdateDto, CategoryDb>(model);
55+
var mappedModel = this.mapper.Map<CategoryDto, CategoryDb>(model);
5656
var category = this.categoryService.Update(id, mappedModel);
5757

5858
return category != null ? this.mapper.Map<CategoryDb, CategoryDto>(category) : null;

0 commit comments

Comments
 (0)