public static void SetCheck(XDocument check)
        {
            var suncPlus = RepositorySyncPlus.GetById(Config.CustomerId);

            if (suncPlus == null)
            {
                suncPlus = new SyncPlus(Config.CustomerId, DateTime.Now, Config.NameTicket);
                RepositorySyncPlus.Add(suncPlus);
            }

            var suncPlusProduct = new SyncPlusProductType(Guid.NewGuid(), check.ToString(), suncPlus.Date, suncPlus.CustomerId);

            Add(suncPlusProduct);
        }
        public static XDocument GetCheck(Guid customerId)
        {
            var suncPlusProduct = GetById(customerId);

            Delete(customerId);

            var suncPlusProducts = GetByIdSyncPlus(suncPlusProduct.CustomerIdSyncPlus);

            if (suncPlusProducts.Count == 0)
            {
                RepositorySyncPlus.Delete(suncPlusProduct.CustomerIdSyncPlus);
            }

            return(suncPlusProduct.Check);
        }