Ejemplo n.º 1
0
        protected void lblDeletes_Click(object sender, EventArgs e)
        {
            int    ID           = Int32.Parse((sender as LinkButton).CommandArgument);
            string messageError = ProductTypeController.delete(ID);

            if (messageError != "")
            {
                lblErrorDeleteType.Text = messageError;
            }
            else
            {
                ProductTypeHandler.remove(ID);
                loadData();
                lblErrorDeleteType.Text = "Product type has been deleted";
            }
        }