Making PostRequest a generic method