public House GetById(int id) { House foundHouse = _repo.GetById(id); if (foundHouse == null) { throw new Exception("Invalid Id"); } return(foundHouse); }
internal House GetById(int id) { House foundHouse = _repo.GetById(id); if (foundHouse == null) { throw new Exception("invalid id!!"); } return(foundHouse); }