/* Metodo para agregar un nuevo brand */ protected void addBrand_Click(object sender, EventArgs e) { string value = valueBrand.Text; if (value != "") { EquipmentService equipmentService = new EquipmentService(); String user = Context.User.Identity.Name; AuditDataFromWeb audit = new AuditDataFromWeb(); audit.Reason = "N/A"; audit.StationIP = General.getIp(this.Page); audit.UserName = user; CUDView crud = equipmentService.insertBrand(value, audit); if (crud.insert == false) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not insert the Value')", true); } else { valueBrand.Text = ""; fillBrandGroupTable(); updateBrandModal.Update(); } } }
protected void addBrand_Click(object sender, EventArgs e) { string value = valueBrand.Text; if (value != "") { EquipmentService equipmentService = new EquipmentService(); CUDView crud = equipmentService.insertBrand(value); if (crud.insert == false) { this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not insert the Value')", true); } else { valueBrand.Text = ""; fillBrandGroupTable(); updateBrandModal.Update(); } } }