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); }
public void UpdateCity(string id, string name) { CCity city = new CCity(Guid.Parse(id), name); city.Update(); }