protected void deleteButton_Click(object sender, EventArgs e)
        {
            Company company = new Company();

            company.Id          = Convert.ToInt32(idHiddenField.Value);
            company.CompanyName = companyNameTextBox.Text;

            companyManager.DeleteCompanyById(company);
            Response.Redirect("CompanyDetailsUI.aspx");
        }
Пример #2
0
 public bool DeleteCompany(int companyId)
 {
     CompanyManager.DeleteCompanyById(companyId);
     return(true);
 }