public static void SaveRiwayatReminder(int notificationId, DateTime notificationTime, string notificationMessage) { db.CreateTable <RiwayatReminder>(); // set data RiwayatReminder data = new RiwayatReminder(); data.NotificationID = notificationId; data.Time = notificationTime; data.Message = notificationMessage; data.Active = true; // insert data db.Insert(data); }
public static void UpdateRiwayatReminder(int id, int notificationId, DateTime notificationTime, string notificationMessage, bool status) { db.CreateTable <RiwayatReminder>(); // set data RiwayatReminder data = new RiwayatReminder(); data.Id = id; data.NotificationID = notificationId; data.Time = notificationTime; data.Message = notificationMessage; data.Active = status; // update data db.Update(data); }