public void ErrorTracking(ErrorLog ex, string[] conn)
        {
            BISPL_CRMDBEntities ce    = new BISPL_CRMDBEntities(svr.GetEntityConnection(conn));
            ErrorLog            error = new ErrorLog();

            error.Data           = ex.Data.ToString();
            error.GetType        = ex.GetType.ToString();
            error.InnerException = ex.InnerException.ToString();
            error.Message        = ex.Message.ToString();
            error.Source         = ex.Source.ToString();
            error.DateTime       = DateTime.Now;
            error.UserID         = ex.UserID;
            //ce.AddToErrorLogs(error);
            //ce.SaveChanges();

            SqlCommand cmd = new SqlCommand();

            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "Sp_EnterErrorTracking";
            cmd.Connection  = svr.GetSqlConn(conn);
            cmd.Parameters.Clear();
            cmd.Parameters.AddWithValue("Data", error.Data);
            cmd.Parameters.AddWithValue("GetType", error.GetType);
            cmd.Parameters.AddWithValue("InnerException", error.InnerException);
            cmd.Parameters.AddWithValue("Message", error.Message);
            cmd.Parameters.AddWithValue("Source", error.Source);
            cmd.Parameters.AddWithValue("DateTime", error.DateTime);
            cmd.Parameters.AddWithValue("UserID", error.UserID);
            cmd.ExecuteNonQuery();
        }