Guest User

Untitled

a guest
Apr 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using BooksWebApi.Entities;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4.  
  5. namespace BooksWebApi.Repository
  6. {
  7. public interface ICrudRepository
  8. {
  9. void Add<T>(T entity) where T : class;
  10. void Delete<T>(T entity) where T : class;
  11. Task<bool> SaveAllAsync();
  12. IEnumerable<Book> GetBooks();
  13. Book GetBook(int id);
  14. IEnumerable<Book> GetBooksByCategory(string category);
  15. Category GetCategoryWithBooks(int id);
  16. User GetUser(string userName);
  17. }
  18. }
Add Comment
Please, Sign In to add comment