VModel.cs 443 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace modulekz
  7. {
  8. class VModel
  9. {
  10. public List<Book> books;
  11. public VModel()
  12. {
  13. books = LoadData();
  14. }
  15. public List<Book> LoadData()
  16. {
  17. List<Book> pb = BaseConnect.BaseModel.Book.ToList();
  18. return pb;
  19. }
  20. }
  21. }