protected void ButtonEdit_Click(object sender, EventArgs e)
        {
            var model = new Department();

            this.TryUpdateModel(model, new FormValueProvider(this.ModelBindingExecutionContext));
            if (this.ModelState.IsValid)
            {
                this.Edit(model);
                this.ReBindGrid();
                NotyDepartments.Update(this);
            }
        }
        protected void BtnDelete_Click(object sender, EventArgs e)
        {
            int id = int.Parse(this.Request.Form["Deleteid"]);

            if (this.CheckBoxShowDeleted.Checked)
            {
                this.UnDelete(id);
                this.ReBindGrid();
                NotyDepartments.Update(this);
            }
            else
            {
                this.Delete(id);
                this.ReBindGrid();
                NotyDepartments.Update(this);
            }
        }