private void FixupDeliveryNotes(DeliveryNotes previousValue) { if (previousValue != null && previousValue.NoteLineItem.Contains(this)) { previousValue.NoteLineItem.Remove(this); } if (DeliveryNotes != null) { if (!DeliveryNotes.NoteLineItem.Contains(this)) { DeliveryNotes.NoteLineItem.Add(this); } } }
public void DeleteDeliveryNote(int id) { var deletingDn=new DeliveryNotes(); db.DeliveryNotes.DeleteObject(deletingDn); }
public void CreateDeliveryNote(DeliveryNotes dn) { db.DeliveryNotes.AddObject(dn); db.SaveChanges(); }