Created
July 10, 2017 19:19
-
-
Save smashdevcode/2df0bf08ff30bb5bc29ba64047d6ce4a to your computer and use it in GitHub Desktop.
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 static ComicBook GetComicBook(int comicBookId) | |
{ | |
using (var context = new Context()) | |
{ | |
return context.ComicBooks | |
.Where(cb => cb.Id == comicBookId) | |
.SingleOrDefault(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment