示例#1
0
文件: User.cs 项目: NickQi/TianheDemo
        public ExecuteProcess AddUser(QueryUser model)
        {
            var pAction = new ExecuteProcess();
            try
            {
                if (new NTS.WEB.BLL.User().IsExistUserName(model))
                {
                    pAction.Success = false;
                    pAction.ExceptionMsg = "该用户名已存在";
                    return pAction;
                }
                else
                {

                    new NTS.WEB.BLL.User().AddUser(model);
                    pAction.Success = true;
                    pAction.ExceptionMsg = "新增用户成功";
                    return pAction;
                }

            }
            catch (Exception e)
            {
                pAction.Success = false;
                pAction.ExceptionMsg = e.Message;
                return pAction;
            }
        }
示例#2
0
文件: User.cs 项目: NickQi/TianheDemo
 public void UpdateUser(QueryUser model)
 {
     //dal.UpdateUser(model);
 }
示例#3
0
文件: User.cs 项目: NickQi/TianheDemo
 public bool IsExistUserName(QueryUser model)
 {
     return true;
     //return dal.IsExistUserName(model);
 }
示例#4
0
文件: User.cs 项目: NickQi/TianheDemo
 public void AddUser(QueryUser model)
 {
     // dal.AddUser(model);
 }