We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68ead97 commit 14ac511Copy full SHA for 14ac511
NorthwindCRUD/ControllersGraphQL/CategoryController.cs
@@ -50,9 +50,9 @@ public CategoryDto Create(CategoryDto model)
50
}
51
52
[Mutation]
53
- public CategoryDto? Update(int id, CategoryUpdateDto model)
+ public CategoryDto? Update(int id, CategoryDto model)
54
{
55
- var mappedModel = this.mapper.Map<CategoryUpdateDto, CategoryDb>(model);
+ var mappedModel = this.mapper.Map<CategoryDto, CategoryDb>(model);
56
var category = this.categoryService.Update(id, mappedModel);
57
58
return category != null ? this.mapper.Map<CategoryDb, CategoryDto>(category) : null;
0 commit comments