Пример #1
0
        public Shop GetShopFromData(List <string> linesOfText)
        {
            var FirstLine = String.Join(String.Empty, linesOfText);

            FirstLine = Regex.Replace(FirstLine, @"\r\r\n", " ");
            var Allshops = _shops.GetExistingShops();
            var ShopName = GetShopName(FirstLine, Allshops);

            if (ShopName == null)
            {
                return(null);
            }
            else
            {
                return(GetShopWithLocation(FirstLine, Allshops
                                           .Where(x => x.Name == ShopName || x.SubName == ShopName).ToList()));
            }
        }