public JsonResult GetAllProductIds() { //string result = ""; List <long> proids = new List <long>(); proids = _iDistributionService.GetAllDistributionProductIds(curshopid); //if (proids.Count > 0) //{ // foreach (var item in proids) // { // if (!string.IsNullOrWhiteSpace(result)) // { // result += ","; // } // result += item.ToString(); // } //} return(Json(proids)); }