public void UpdateNotificationShown(Guid recordId) { gnl_notifications notification = new gnl_notifications(); notification = this.GetNotification(recordId); notification.notification_shown = true; notification.notification_shown_date = DateTime.UtcNow; this.Kaydet(); }
public void AddNotification(Guid related_record_id, Guid notification_user_id, int notification_type, int notification_module_type, string title, string body) { gnl_notifications notification = new gnl_notifications(); notification.notification_id = Guid.NewGuid(); notification.related_record_id = related_record_id; notification.notification_user_id = notification_user_id; notification.notification_type = notification_type; notification.notification_module_type = notification_module_type; notification.notification_title = title; notification.notification_body = body; notification.notification_shown = false; notification.notification_created_date = DateTime.UtcNow; db.gnl_notifications.Add(notification); this.Kaydet(); }