Пример #1
0
        public int InsertData(DECustomer customer)
        {
            DALCustomer obj_DALCustomer = new DALCustomer();

            int int_Result;

            if (customer.Customer_Id == 0)
            {
                int_Result = obj_DALCustomer.InsertData(customer);
            }
            else
            {
                int_Result = obj_DALCustomer.UpdateData(customer);
            }

            obj_DALCustomer = null;

            return(int_Result);
        }