public void ReadNotification([FromBody] ReadNotificationRequest request) { LogsDataManager.SendLog( request.PatronId, "Patron", "read notification with id " + request.Id); NotificationsDataManager.ReadNotification(request.Id); }
public bool ReadNotification(ReadNotificationRequest readRequest) { using (DataAccess dataAccess = new DataAccess()) { var selectedNotf = dataAccess.Notifications.Where(x => x.NotfID == readRequest.NotfID).FirstOrDefault <Notification>(); selectedNotf.ReadID = true; dataAccess.Notifications.Update(selectedNotf); return(dataAccess.SaveChanges() > 0); } }
public bool ReadNotification(ReadNotificationRequest readNotification) { return(notificationService.ReadNotification(readNotification)); }