How to get id from string as in url?
Microsoft Net Framework

<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);
        }

Share This with your friend by choosing any social account


Upcoming Articles
You may also read following recent Post
Copyright Future Minutes © 2015- 2024 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM