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; } }
public void UpdateUser(QueryUser model) { //dal.UpdateUser(model); }
public bool IsExistUserName(QueryUser model) { return true; //return dal.IsExistUserName(model); }
public void AddUser(QueryUser model) { // dal.AddUser(model); }