Created
December 11, 2018 02:54
-
-
Save jgabrielfreitas/70fe6b6394aab9f30ccfc38a68a76ba6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Update(User user) | |
| { | |
| var result = db.Users.SingleOrDefault(currentUser => currentUser.Id == user.Id); | |
| if (result != null) | |
| { | |
| db.SaveChanges(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment