Hyundai Accent Oil Pump Question

Our car started making knocking noises and this morning the oil light came on. We took it to a shop who said that the oil pump was not working and suggested we get a whole new motor! What would you recommend?