private void backgroundWorker1_DoWork(object sender, System.ComponentModel.DoWorkEventArgs e) { var userNotifyObj = new Entity_UserNotification(); userNotifyObj.myConfigObj = Utility.getConfigObj(); userNotifyObj.viewDate = DateTime.Now; userNotifyObj.staffId = Common.loggedUser.staffId; userNotifyObj.notificationId = this.notifyObj.notificationId; if (notificationManager == null) { notificationManager = new NotificationManagerImpl(); } notificationManager.saveUserNotification(userNotifyObj); }
public void saveUserNotification(Entity_UserNotification userNotifyObj) { Utility.logFile(Constant.METHOD_ENTER + Utility.getCurrentMethodName(1) + "(NotificationManagerImpl)", null, Constant.LOGTYPE_INFO); persistence.save(userNotifyObj); }