예제 #1
0
        /// <summary>
        /// 判断用户名是否存在
        /// </summary>
        /// <param name="UserName">要判断是否存在的用户名</param>
        /// <returns></returns>
        public bool isHaveThisUserName(string UserName)
        {
            UserinfoDAL BLL = new UserinfoDAL();
            userinfo    uif = BLL.isHaveThisUserName(UserName);

            if (uif == null)
            {
                return(false);
            }
            return(true);
        }
예제 #2
0
        /// <summary>
        /// 根据用户名获取指定用户信息
        /// </summary>
        /// <param name="UserName">要判断是否存在的用户名</param>
        /// <returns></returns>
        public userinfo GetThisUserNameInfo(string UserName)
        {
            UserinfoDAL BLL = new UserinfoDAL();

            return(BLL.isHaveThisUserName(UserName));
        }