Пример #1
0
        public int UpdateData(DECustomerCategory catagory)
        {
            DALCustomerCategory obj_DALCatagory = new DALCustomerCategory();

            int int_Result = obj_DALCatagory.UpdateData(catagory);

            obj_DALCatagory = null;

            return(int_Result);
        }
Пример #2
0
        public int InsertData(DECustomerCategory catagory)
        {
            DALCustomerCategory obj_DALCatagory = new DALCustomerCategory();

            int int_Result;

            if (catagory.Catagory_Id == 0)
            {
                int_Result = obj_DALCatagory.InsertData(catagory);
            }
            else
            {
                int_Result = obj_DALCatagory.UpdateData(catagory);
            }

            obj_DALCatagory = null;

            return(int_Result);
        }