public void Updated(ISimpleMaster obj) { //Spring.Validation.ValidationErrors errors = new Spring.Validation.ValidationErrors(); SuMenu menu = DaoProvider.SuMenuDao.FindByIdentity(obj.Menuid); menu.MenuCode = obj.MenuCode; //menu.MenuLevel = obj.MenuLevel; menu.Comment = obj.Comment; menu.Active = obj.Active; menu.UpdBy = obj.UpdBy; menu.UpdDate = obj.UpdDate; menu.UpdPgm = obj.UpdPgm; DaoProvider.SuMenuDao.SaveOrUpdate(menu); }
public void Add(ISimpleMaster obj) { //Spring.Validation.ValidationErrors errors = new Spring.Validation.ValidationErrors(); SuMenu menu = new SuMenu(); menu.MenuCode = obj.MenuCode; //menu.MenuLevel = obj.MenuLevel; menu.Comment = obj.Comment; menu.Active = obj.Active; menu.CreBy = obj.CreBy; menu.CreDate = obj.CreDate; menu.UpdBy = obj.UpdBy; menu.UpdDate = obj.UpdDate; menu.UpdPgm = obj.UpdPgm; short divId = DaoProvider.SuMenuDao.Save(menu); }