private List <ListItem> getProductsList() { List <Product> Products = ProductCollection.FetchAll(); List <ListItem> items = Products.Where(s => s.IsDeleted == false) .Select(s => new ListItem { Value = s.ProductCode.ToString(), Text = s.ProductCode }).ToList(); List <ListItem> ddlData = new List <ListItem>(); ddlData.Add(new ListItem() { Value = "0", Text = Snoopi.web.Resources.PromotedArea.ResourceManager.GetString("NoSelection") }); foreach (var item in items) { ddlData.Add(item); } return(ddlData); }