Esempio n. 1
0
        static public bool IsTkMe(string tk)
        {
            bool result = false;

            try
            {
                SqlCommand cmdGet = new SqlCommand("exec CheckIsTkMe @tk");
                cmdGet.Parameters.Add("@tk", SqlDbType.Char).Value = tk;
                if ((int)StartUp.SysObj.ExcuteScalar(cmdGet) > 0)
                {
                    result = true;
                }
            }
            catch (SqlException ex)
            {
                ErrorLog.CatchMessage(ex);
            }
            return(result);
        }