private bool DoEdit(int _id) { bool result = true; BLL.dept bll = new BLL.dept(); Model.dept model = bll.GetModel(_id); model.dept_name = txtDeptName.Text.Trim(); if (!bll.Update(model)) { result = false; } return(result); }
private void ShowInfo(int _id) { BLL.dept bll = new BLL.dept(); Model.dept model = bll.GetModel(_id); txtDeptName.Text = model.dept_name; }