public void OnPostDelete(string id) { var house = _houseRepository.Read(id); _houseRepository.Delete(house); this.Houses = _houseRepository.List().Select(n => new ViewModels.HouseViewModel(n)).ToList(); }