public static List <SelectedProduct> GetProductNames(String ProductID) { List <String> lstproductId = new List <String>(); lstproductId = ProductID.Split(',').ToList(); var result = DefaultListDSForPJ.GetProductNames(lstproductId); return(result); }
public static string GetBrandName(string BrandId) { List <String> lstBrandId = new List <String>(); lstBrandId = BrandId.Split(',').ToList(); var listresponse = DefaultListDSForPJ.GetProductNames(lstBrandId); string result = string.Join(",", listresponse.Select(r => r.ProductName)); return(result); }