Andre Lopes
1 min readApr 16, 2020

You are right.

It is missing the mapping for SaveArtistResource to Artist and SaveMusicResource to Music.

For that you just need to add these two mappings to your MappingProfile.cs right after CreateMap<ArtistResource, Music>() :

CreateMap<SaveMusicResource, Music>();         CreateMap<SaveArtistResource, Artist>();

This way AutoMapper will know how to map these models. :)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Written by Andre Lopes

Full-stack developer @ Tesla | Public Speaker | AWS | Terraform | Serverless | Gamer | Eternal Geek 🤓

No responses yet

Write a response