public FormOneDataControl()
 {
     InitializeComponent();
     myCollectionViewSource.DataSource = StudentViewModel.GetStudents();     // or myCollectionViewSource.ItemsSource? Crap, can't pull the CollectionViewSource properties from raw memory...
 }
Ejemplo n.º 2
0
 // GET
 public IActionResult GetAll()
 {
     return(View(StudentViewModel.GetStudents(_repository)));
 }
Ejemplo n.º 3
0
 public IEnumerable <StudentViewModel> GetAllApi()
 {
     return((StudentViewModel.GetStudents(_repository)).ToList());
 }
 public FormOneDataControl()
 {
     InitializeComponent();
     myCollectionViewSource.DataSource = StudentViewModel.GetStudents();
 }