private bool DoAdd() { bool result = false; Model.CustomerType model = new Model.CustomerType(); BLL.CustomerType bll = new BLL.CustomerType(); model.Name = txtName.Text.Trim(); if (bll.Add(model) > 0) { AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加客户类别:" + model.Name); //记录日志 result = true; } return(result); }
private bool DoAdd() { bool result = false; Model.CustomerType model = new Model.CustomerType(); BLL.CustomerType bll = new BLL.CustomerType(); model.Name = txtName.Text.Trim(); if (bll.Add(model) > 0) { AddAdminLog(DTEnums.ActionEnum.Add.ToString(), "添加客户类别:" + model.Name); //记录日志 result = true; } return result; }