protected void btnDelete_Click(object sender, EventArgs e) { var itemTypeToDelete = new ItemType { Id = ItemTypeId }; _itemTypeManager.Delete(itemTypeToDelete); Response.Redirect("/ItemTypeManagementPanel"); }
protected void btnSave_Click(object sender, EventArgs e) { var newItemType = new ItemType { DepartmentId = int.Parse(DDLDepartments.SelectedValue), ItemDesciption = txtItemTypeDescription.Text, ItemTypeCode = txtItemTypeCode.Text, UniqueId = Guid.NewGuid(), Id = ItemTypeId }; _itemTypeManager.Save(newItemType); Response.Redirect("/ItemTypeManagementPanel"); }