public void SavePerson(PersonDB person)
 {
     using (var personDb = new PersonContext())
     {
         personDb.Persons.Add(person);
         personDb.SaveChanges();
     }
 }
        public void UpdatePerson(PersonDB person)
        {
            if ( person != null )
            {
                using (var personDb = new PersonContext())
                {
                    var editItem = personDb.Persons.Where(i => i.Id == person.Id).SingleOrDefault();

                    if (editItem != null)
                    {
                        editItem.Name = person.Name;
                        editItem.SurName = person.SurName;
                        editItem.Age = person.Age;

                        personDb.SaveChanges();
                    }
                }
            }
        }
        public List<PersonDB> GetPersonsList()
        {
            using (var personDb = new PersonContext())
            {
                //var pp = new PersonDB();
                //pp.Id = Guid.NewGuid();
                //pp.Name = "gg";

                //var yy = new List<string>();
                //yy.Add("123");

                //pp.S = yy;
                //personDb.Persons.Add(pp);
                //personDb.SaveChanges();

                //var items = personDb.Persons.ToList<PersonDB>();

                personDb.Pers.Add(new Per());
                personDb.SaveChanges();

                var uu = personDb.Pers.ToList();
                return null;
            }
        }