Exemple #1
0
        public static bool DeleteData(OrigenRecord pComp, ref string sMensaje)
        {
            bool bRetorno = true;

            try
            {
                ORIGEN oCom = new ORIGEN();
                oCom.ConnectionString = Parametros.CadenaConexion;

                oCom.LoadByPrimaryKey(pComp.ORI_ID);


                oCom.MarkAsDeleted();

                oCom.Save();
            }
            catch (Exception ex)
            {
                sMensaje = ex.Message.ToString();
                bRetorno = false;
            }


            return(bRetorno);
        }