c# webapi 跳转

c# webapi 跳转 

 

public HttpResponseMessage Post()
{
    // ... do the job
    // now redirect
   
    HttpResponseMessage resp = new HttpResponseMessage(HttpStatusCode.Moved)    
    resp.Headers.Location = new Uri("http://www.***c.com");
    return resp;
}

 

posted @ 2018-07-12 17:56  94cool  阅读(3028)  评论(0编辑  收藏  举报