Exemplo n.º 1
0
        public static bool DeleteEntity(ref string response, string transactionXML, string companyDB)
        {
            string connString = DataAccess.ConnectionStringWindows;

            bool returnValue;

            response = "";

            eConnectMethods eConnCall = new eConnectMethods();

            try
            {
                returnValue = eConnCall.DeleteEntity(connString, transactionXML);
                return(true);
            }
            catch (eConnectException ex)
            {
                response = ex.Message;
                return(false);
            }
            catch (SqlException ex)
            {
                foreach (SqlError sqlErr in ex.Errors)
                {
                    response += sqlErr.Message + "\r\n";
                }
                return(false);
            }
            catch (Exception ex)
            {
                response = ex.Message;
                return(false);
            }
        }