Created
July 30, 2020 09:51
-
-
Save PradeepLoganathan/a3b80f003b9fa6e1329f53bbaf172e92 to your computer and use it in GitHub Desktop.
BooksRepository
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 class BooksRepository:GenericRepository<Book>, IBooksRepository | |
| { | |
| public BooksRepository(BookStoreDbContext context) : base(context) | |
| { | |
| } | |
| public IEnumerable<Book> GetBooksByGenre(string Genre) | |
| { | |
| return _context.Books.Where(x => x.Genre == Genre); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment