Exemplo n.º 1
0
        public static bool DeleteCustomerBL(int deleteCustomerId)
        {
            bool customerDeleted = false;

            try
            {
                if (deleteCustomerId > 0)
                {
                    CustomerDAL customerDAL = new CustomerDAL();
                    customerDeleted = customerDAL.DeleteCustomerDAL(deleteCustomerId);
                }
                else
                {
                    throw new CustomerException("Invalid Customer Id");
                }
            }
            catch (CustomerException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(customerDeleted);
        }