title: how to remove the querystring parameters in url in mvc4 with razer using url.action
body: <p>url.action is :</p>
  
  <pre><code>&lt;li&gt;&lt;a href="@Url.Action("CategoryLevel", "Product", new { CategoryId = @item._categoryId, ProductName = @Html.Raw(item._categoryName) })"&gt;@Html.Raw(item._categoryName)&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>it works fine but i dont want to display the qyery string in url </p>
  
  <p>url is:</p>
  
  <p><code>http://localhost:99/Product/CategoryLevel?CategoryId=16&amp;ProductName=Common%20Conditions</code></p>
  
  <pre><code>i want to display this as
  
  
  `http://localhost:99/Product/CategoryLevel/16/Common%20Conditions`  (or)`http://localhost:99/Product/CategoryLevel/Common%20Conditions(or)http://localhost:99/Product/Common%20Conditions`
  </code></pre>
  
  <p>route config is:<code>
              routes.MapRoute(
                         name: "Home",
                         url: "{controller}/{action}",
                         defaults: new { controller = "Home", action = "Index" }
                     );</code></p>
  
  <p>ActionResult in controller is:` </p>
  
  <pre><code>public ActionResult CategoryLevel()
          {
              string ProductName = Request.QueryString["ProductName"];
              ViewBag.ProductName = ProductName;
              int Category = Convert.ToInt32(Request.QueryString["CategoryId"]);
              ViewBag.ParentCategoryId = Category;
              int ParentCategoryId = 0;
              if (Request.QueryString["ParentCategoryId"] != null)
              {
                  ParentCategoryId = Convert.ToInt32(Request.QueryString["ParentCategoryId"]);
              }
              Product productInstance = new Product();
              IList&lt;CategoryInfo&gt; categories = new List&lt;CategoryInfo&gt;();
              categories = productInstance.GetCategories(Category, true);
              if (categories.Count == 0)
              {
                  return RedirectToAction("NewProducts", "Product", new { @CategoryId = Category,  ProductName = ProductName });
              }
  
              return View(categories);
  
          }`another actionresult is`public ActionResult NewProducts(Product instance)
          {
              string ProductName = Request.QueryString["ProductName"];
              instance.BrandName = ProductName;
              int CategoryId = Convert.ToInt32(Request.QueryString["CategoryId"]);
              int BrandId = Convert.ToInt32(Request.QueryString["BrandId"]);
              string SortBy = Convert.ToString(Request.QueryString["sortBy"]);
              if (SortBy != null)
              {
                  Session["Sort"] = SortBy;
              }
              Session["NewProductsBrandId"] = BrandId;
              instance.CategoryId = CategoryId;
              instance.BrandId = BrandId;
              instance.SortBy = SortBy;
              return View(instance);
          }`
  </code></pre>