Beispiel #1
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     var binToDelete = new Bin
     {
         Id = BinId
     };
     _binManager.Delete(binToDelete);
     Response.Redirect("BinManagementPanel.aspx");
 }
Beispiel #2
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     var bin = new Bin
     {
         BinCode = txtBinCode.Text,
         BinDescription = txtBinDescription.Text,
         DepartmentId = int.Parse(DDLDepartments.SelectedValue),
         Uid = Guid.NewGuid(),
         Id = BinId
     };
     _binManager.Save(bin);
     Response.Redirect("BinManagementPanel.aspx");
 }