private List <long> GetAllReadyMarked(IEnumerable <string> marked) { var markedList = new List <long>(); if (marked != null && marked.Count() > 0) { foreach (var mark in marked) { string[] markStr = mark.Split(';'); markedList.AddRange(markStr.Where(p => !string.IsNullOrEmpty(p)).Select(i => NumberConvert.GetOnlyNumbers(i))); } } return(markedList); }