/// <summary> /// This method is for to update the notification from unread to read /// </summary> /// <param name="notificationreadstatus"></param> public void Save(NotificationReadStatus notificationreadstatus) { var result = 0; var dbCtx = new AdvocateHealthCareEntities(); dbCtx.spSaveNotificationReadStatus(notificationreadstatus.UserID, notificationreadstatus.NotificationID); //dbCtx.spSaveNotificationReadStatus(3, 1); }
public void SaveNotificationReadStatus(NotificationReadStatus notificationreadstatus) { try { NotificationReadStatusDAL notif = new NotificationReadStatusDAL(); List<NotificationReadStatus> hospital = new List<NotificationReadStatus>(); notif.Save(notificationreadstatus); } catch (Exception ex) { objHelper.WriteErrorLog("HCP.WebAPI --> NotificationReadStatusController--> SaveNotificationReadStatus-->" + ex.Message); //throw ex; } }