private async Task <List <House> > InitializeDataAsync() { var houseService = new HouseServices(); ProviderHouseList = await houseService.GetHousesForProvider(providerId); CurrentHouseService = await houseService.GetServiceForHouse(houseIDToFindSingleHouse); return(ProviderHouseList); }
private async Task <House> InitializeDataAsync() { var viewCurrentHouseService = new HouseServices(); CurrentHouse = await viewCurrentHouseService.GetSingleHouseDetailPage(houseIDToFindSingleHouse); CurrentHouseService = await viewCurrentHouseService.GetServiceForHouse(houseIDToFindSingleHouse); CurrentHouseNotes = await viewCurrentHouseService.GetNotesForHouse(houseIDToFindSingleHouse); CurrentHouseNotes.Reverse(); return(CurrentHouse); }