Skip to content

Instantly share code, notes, and snippets.

@PradeepLoganathan
Created July 30, 2020 09:51
Show Gist options
  • Select an option

  • Save PradeepLoganathan/a3b80f003b9fa6e1329f53bbaf172e92 to your computer and use it in GitHub Desktop.

Select an option

Save PradeepLoganathan/a3b80f003b9fa6e1329f53bbaf172e92 to your computer and use it in GitHub Desktop.
BooksRepository
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