ViewModel.cs 488 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace VorobiovExam01
  7. {
  8. public class ViewModel
  9. {
  10. public List<Books> books;
  11. public List<Order> order;
  12. public ViewModel()
  13. {
  14. books = LoadData();
  15. }
  16. public List<Books> LoadData()
  17. {
  18. List<Books> book = BaseConnect.BaseModel.Books.ToList();
  19. return book;
  20. }
  21. }
  22. }