Created
September 27, 2014 07:48
-
-
Save ahmad2x4/cddb3921e5b672ff7f2a to your computer and use it in GitHub Desktop.
blog automapper expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Add(Source source) | |
{ | |
_context.Users.Add(Mapper.Map<Destination>(source)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment