Пример #1
0
        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
 public void UpdateUser(QueryUser model)
 {
     //dal.UpdateUser(model);
 }
Пример #3
0
 public bool IsExistUserName(QueryUser model)
 {
     return true;
     //return dal.IsExistUserName(model);
 }
Пример #4
0
 public void AddUser(QueryUser model)
 {
     // dal.AddUser(model);
 }