public void Create(tb_Sys_RolesControl tb_Sys_RolesControl) { tb_Sys_RolesControl.CreateDt = DateTime.Now; tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User; tb_Sys_RolesControl.CreateUser = tempUser.UserName; tb_Sys_RolesControl.Validate(); this.tb_Sys_RolesControlRepository.Add(tb_Sys_RolesControl); this.runtimeService.Commit(); }
public void Update(tb_Sys_RolesControl tb_Sys_RolesControl) { tb_Sys_RolesControl.ModifyDt = DateTime.Now; tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User; tb_Sys_RolesControl.ModifyUser = tempUser.UserName; tb_Sys_RolesControl.Validate(); var existstb_Sys_Menu = this.GetById(tb_Sys_RolesControl.Id); this.tb_Sys_RolesControlRepository.SetValues(tb_Sys_RolesControl, existstb_Sys_Menu); this.runtimeService.Commit(); }