Exemplo n.º 1
0
        public int UpdateData(DECatagory catagory)
        {
            DALCatagory obj_DALCatagory = new DALCatagory();

            int int_Result = obj_DALCatagory.UpdateData(catagory);

            obj_DALCatagory = null;

            return(int_Result);
        }
Exemplo n.º 2
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);
        }