public int Save(CustomPage customPage) { CustomPageDL customPageDL=new CustomPageDL(); if (customPage.CustomPageID > 0) return customPageDL.Update(customPage); else return customPageDL.Save(customPage); }