public int GetMemory()
        {
            using (var db = new MemoryContext())
            {
                var tmp = (from entity in db.Memory
                           where entity.ID == 1
                           select entity).First();
                return tmp.memory;

            }
        }
        public void SetMemory(int value)
        {
            using (var db = new MemoryContext())
            {
                var tmp = (from entity in db.Memory
                           where entity.ID == 1
                           select entity).First();

                {
                    tmp.memory = value;
                    //UpdateModel(tmp);
                    db.SaveChanges();
                }

            }
        }