Ejemplo n.º 1
0
        public string wmCopyEcotemplate(string sEcoTemplateID, string sNewName)
        {
            //have to instantiate one just to copy it :-(
            //grr, but that overhead won't happen too often.
            string sErr = "";

            Ecotemplate et = new Ecotemplate(sEcoTemplateID);
            if (et != null)
            {
                if (!et.DBCopy(sNewName, ref sErr))
                    return sErr;

                //returning the ID indicates success...
                return et.ID;
            }
            else
            {
                throw new Exception("Unable to get Template [" + sEcoTemplateID + "] to copy.");
            }
        }