public void Delete(InvoiceItem onInvoice)
 {
     _db.InvoiceItems.Remove(onInvoice);
     _db.SaveChanges();
 }
 public void Update(int id, InvoiceItem onInvoice)
 {
     _db.Entry(onInvoice).State = EntityState.Modified;
     _db.SaveChanges();
 }
 public void Add(InvoiceItem onInvoice)
 {
     _db.InvoiceItems.Add(onInvoice);
     _db.SaveChanges();
 }