Beispiel #1
0
        private bool isExist(string CustomerName, double ID)
        {
            DataTable d = _NguoidungDAL.GetTenNguoiDungDynamic(" Ten_Dangnhap=N'" + CustomerName + "' and nguoitao=" + _user.UserID.ToString() + " and Ma_Nguoidung<>" + ID.ToString(), null).Tables[0];

            if (d.Rows.Count == 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }