private bool DoAdd() { bool result = true; DTcms.Model.photo_attribute model = new Model.photo_attribute(); DTcms.BLL.photo_attribute bll = new BLL.photo_attribute(); model.channel_id = this.channel_id; model.title = txtTitle.Text.Trim(); model.remark = txtRemark.Text.Trim(); model.type = int.Parse(ddlType.SelectedValue); model.default_value = txtDefaultValue.Text.Trim(); model.sort_id = int.Parse(txtSortId.Text.Trim()); if (bll.Add(model) < 1) { result = false; } return result; }
private bool DoAdd() { bool result = true; DTcms.Model.photo_attribute model = new Model.photo_attribute(); DTcms.BLL.photo_attribute bll = new BLL.photo_attribute(); model.channel_id = this.channel_id; model.title = txtTitle.Text.Trim(); model.remark = txtRemark.Text.Trim(); model.type = int.Parse(ddlType.SelectedValue); model.default_value = txtDefaultValue.Text.Trim(); model.sort_id = int.Parse(txtSortId.Text.Trim()); if (bll.Add(model) < 1) { result = false; } return(result); }