Exemplo n.º 1
0
        public string SendCity()
        {
            City city = new City();
            DBActions dbActions = new DBActions();
            string msg = "";
            string table = "Cities";
            int lastId = dbActions.LastId(table);

            city = dbActions.GetCity(lastId);
            msg = dbActions.AddCity(city);
            string delRes = dbActions.DeleteLocal(lastId, table);
            if (delRes != Resources.Success)
            {
                msg = string.Concat("Deletion from local DB failed: ", delRes);
            }
            DBActions.CheckCitiesEmptiness();
            return msg;
        }