Exemplo n.º 1
0
 private List <Boat> GetAllBoats()
 {
     using (var context = new BoatContext())
     {
         var service = new BoatService(context);
         var boats   = service.GetAll();
         return(boats.ToList());
     }
 }
Exemplo n.º 2
0
 private void LoadBoatList()
 {
     BoatObservableList = new ObservableCollection <Boat>(boatService.GetAll());
 }