How do I map a null to an object using valueinjecter? It throws an error when I do this.
Do I need to use something else other than InjectFrom()
?
more info
I have a repository that returns an object domain. I then want to map this domain to a viewmodel. The repository will return null if the object doesn't exist. I cannot map a null object to the viewmodel. How do I accomplish this?