public int UpdateData(DECatagory catagory) { DALCatagory obj_DALCatagory = new DALCatagory(); int int_Result = obj_DALCatagory.UpdateData(catagory); obj_DALCatagory = null; return(int_Result); }
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); }