我是編程新手。我試圖建立一個查詢字符串重定向到另一個動作。構建重定向查詢字符串
這裏是我試圖重定向到
public ActionResult Rate(int Wid, int Uid)
{
}
這裏的動作是我想從
public ActionResult ConfirmHire2(bool userConfirmed, int confirId)
{
int Wid = cm.GetCleanerIdFromSale(confirId);
int Uid = um.GetUserIdFromSale(confirId);
//I need something to this affect but it is not working
//return RedirectToAction("'Rate?Wid=' + Wid + 'Uid=' + Uid");
}
非常有趣!非常感謝您花時間回答我! – Newbie