public static int GetItemCountById(int index) { var count = ActiveList.Count(x => x.itemTitle.Contains("*(" + index + ")")); if (count > 1) { var it = ActiveList.Where(x => x.itemTitle.Contains("*(" + index + ")")); } return(count); }
public static int GetItemCountById(int index) { var count = ActiveList.Count(x => x.itemTitle.Contains("*(" + index + ")")); if (count > 1) { var it = ActiveList.Where(x => x.itemTitle.Contains("*(" + index + ")")); } return(count); }