void btnSave_Click(object sender, EventArgs e)
{
try
{
AJH.CMS.Core.Entities.Attribute attribute = new AJH.CMS.Core.Entities.Attribute();
attribute.IsDeleted = false;
attribute.LanguageID = CMSContext.LanguageID;
attribute.PortalID = CMSContext.PortalID;
attribute.Name = txtName.Text;
attribute.GroupID = Convert.ToInt32(ddlGroup.SelectedValue);
attribute.ModuleID = (int)CMSEnums.ECommerceModule.Attribute;
AttributeManager.Add(attribute);
BeginAddMode();
FillAttributes(-1);
upnlAttribute.Update();
}
catch (Exception ex)
{
dvProblems.Visible = true;
dvProblems.InnerText = ex.ToString();
upnlAttribute.Update();
}
}