DEV Community

loading...

Discussion on: Update & Remove Entities in .NET Core 3.1 Web API with PUT & DELETE

Collapse
wissambishouty profile image
Wissam Bishouty • Edited

Good job Patrick I have one comment concerning the updateCharacter method that you do not need to map each property, instead you can do that: _mapper.Map(updatedCharacter,character);serviceResponse.Data = _mapper.Map(character);return serviceResponse; and you have to create the map: CreateMap<'UpdateCharacterDto,Character'>();