protected void Tambah(object newData)
 {
     using (var db = new HLDatabaseContext())
     {
         db.Add(newData);
         db.SaveChanges();
     }
 }
 public void Hapus(int id)
 {
     using (var db = new HLDatabaseContext())
     {
         JadwalObatModel removeTarget = db.DaftarJadwalObat.Where(i => i.Id == id).First();
         db.Remove(removeTarget);
         db.SaveChanges();
     }
 }