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



You may also read following recent Post

Item Image
What are 3 C
 228
Item Image
what is .net
 463
Submit Post - Article - Ask a Question - Ask an Interview Question - Submit Useful Links