How to get id from string as in url?
By Zaif Ullah   Posted on June-30-2018 750
.Net
<a href="@Url.RouteUrl("sellerproductsdetails", new { controller = "Product", action = "UcProductListByClientID", catid = "seller", id = @item.ClientName.ToSeoUrl() + "-" + @item.ClientID })">
public ActionResult UcProductListByClientID(string id )
{
// take only 4 by category
int cid = id.ToProductId(id);
var clientproductlistModel = _productService.GetProductListBySeller(cid).ToList();
return View(clientproductlistModel);
}
By zaifullah489-000001   30-Jun-2018
Views 750