Example #1
0
 public ResidentManagerViewModel()
 {
     using (MainContext context = new MainContext())
     {
         var residentRep = new ResidentRepository(context);
         Residents = new ObservableCollection <Resident>(residentRep.List());
     }
 }
 public async Task <IEnumerable <Resident> > List()
 {
     return(await _residentRepository.List());
 }