Пример #1
0
        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);
        }
Пример #2
0
 private void ShowInfo(int _id)
 {
     BLL.dept   bll   = new BLL.dept();
     Model.dept model = bll.GetModel(_id);
     txtDeptName.Text = model.dept_name;
 }