protected void btnSaveAttribute_Click(object sender, EventArgs e) { eshopBE.Attribute attribute = new eshopBE.Attribute(); attribute.Name = txtName.Text; attribute.IsDescription = chkIsDescription.Checked; if (lblAttributeID.Value != string.Empty) { attribute.AttributeID = int.Parse(lblAttributeID.Value); } AttributeBL attributeBL = new AttributeBL(); attributeBL.SaveAttribute(attribute); Response.Redirect("/" + ConfigurationManager.AppSettings["webshopAdminUrl"] + "/attributes.aspx"); }
protected void btnSaveAttribute_Click(object sender, EventArgs e) { eshopBE.Attribute attribute = new eshopBE.Attribute(); attribute.Name = txtName.Text; attribute.IsDescription = chkIsDescription.Checked; if (lblAttributeID.Value != string.Empty) { attribute.AttributeID = int.Parse(lblAttributeID.Value); } AttributeBL attributeBL = new AttributeBL(); attributeBL.SaveAttribute(attribute); Response.Redirect("/administrator/attributes.aspx"); }