예제 #1
0
        private bool save()
        {
            bool ret = false;

            stC = new STCity();

            stC = read_data();

            if (gstCity.id != 0)
            {
                ret = clCity.Update(stC);
            }
            else
            {
                ret = clCity.Insert(stC);
            }

            return(ret);
        }
예제 #2
0
        public void UpdateCity(string id, string name)
        {
            CCity city = new CCity(Guid.Parse(id), name);

            city.Update();
        }