Пример #1
0
        public DataTable LoadCatagoryTableForAllDataByCatagoryDescription(DECatagory catagory)
        {
            DALCatagory obj_DALCatagory = new DALCatagory();

            DataTable dt_Catagory = obj_DALCatagory.LoadCatagoryTableForAllDataByCatagoryDescription(catagory);

            obj_DALCatagory = null;

            return(dt_Catagory);
        }
Пример #2
0
        public int DeleteData(DECatagory catagory)
        {
            DALCatagory obj_DALCatagory = new DALCatagory();

            int int_Result = obj_DALCatagory.DeleteData(catagory);

            obj_DALCatagory = null;

            return(int_Result);
        }
Пример #3
0
        public Boolean LoadCatagoryRow(DECatagory catagory)
        {
            DALCatagory obj_DALCatagory = new DALCatagory();

            Boolean bool_HasRows = obj_DALCatagory.LoadCatagoryRow(catagory);

            obj_DALCatagory = null;

            return(bool_HasRows);
        }
Пример #4
0
        public DataTable LoadCatagoryTableForAllData()
        {
            DALCatagory obj_DALCatagory = new DALCatagory();

            DataTable dt_Catagory = obj_DALCatagory.LoadCatagoryTableForAllData();

            obj_DALCatagory = null;

            return(dt_Catagory);
        }
Пример #5
0
        public int InsertData(DECatagory catagory)
        {
            DALCatagory obj_DALCatagory = new DALCatagory();

            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);
        }