static int Ft_Check_Equals_Text(Database1Entities tab, Id_Text obj)
        {
            int i;

            i = 0;
            foreach (Text item in tab.Texts)
            {
                i++;
                if (String.Equals(obj.id, item.Id_Text) == true)
                {
                    return(-1);
                }
            }
            return(i);
        }
        static int Ft_Check_Equals_Feed(Database1Entities model, Id_Feed obj)
        {
            int i;

            i = 0;
            foreach (Feed item in model.Feeds)
            {
                i++;
                if (String.Equals(obj.id, item.Id_Feed) == true)
                {
                    return(-1);
                }
            }
            return(i);
        }
        static void Ft_Record_Text(Database1Entities tab, List <Id_Text> mas)
        {
            int i;

            foreach (Id_Text iteam in mas)
            {
                if ((i = Ft_Check_Equals_Text(tab, iteam)) != -1)
                {
                    Text table = new Text()
                    {
                        Id = i, Id_Text = iteam.id, Text1 = iteam.tex
                    };
                    tab.Texts.Add(table);
                    tab.SaveChanges();
                }
            }
        }
        static void Ft_Record_Feed(Database1Entities model, List <Id_Feed> mas)
        {
            int i;

            foreach (Id_Feed iteam in mas)
            {
                if ((i = Ft_Check_Equals_Feed(model, iteam)) != -1)
                {
                    Feed table = new Feed
                    {
                        Id      = i,
                        Id_Feed = iteam.id,
                        feed1   = String.Join(", ", iteam.str)
                    };
                    model.Feeds.Add(table);
                    model.SaveChanges();
                }
            }
        }