Ejemplo n.º 1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            Category objCategory = new Category();

            objCategory.Active = chkActive.Checked;
            objCategory.Name   = tbName.Text;
            objCategory.Id     = Id;

            objCategoryBusiness.Save(objCategory);
            ClearControl();
            LoadGrid();
        }