Example #1
0
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="account"></param>
        /// <param name="password"></param>
        /// <param name="msg"></param>
        /// <param name="flag"></param>
        /// <returns></returns>
        public UserModel Login(string account, string password, out string msg, out bool flag)
        {
            UserModel model = null;
            DataTable dt    = new LoginDAO().Login(account, password, out msg, out flag);

            if (dt.Rows.Count > 0)
            {
                model = DataConvert <UserModel> .ConvertToEntity(dt.Rows[0]);
            }
            return(model);
        }