public void saveBatchDispatchDetail(BatchDispatchDetail batchDispatchDetail) { if (context.Entry(batchDispatchDetail).State == EntityState.Detached) { context.BatchDispatchDetails.Add(batchDispatchDetail); } // context.Entry(BatchDispatch).State = EntityState.Modified; context.SaveChanges(); }
public void deleteBatchDispatchDetail(BatchDispatchDetail batchDispatchDetail) { context.BatchDispatchDetails.Remove(batchDispatchDetail); context.SaveChanges(); }
public void quickSaveBatchDispatchDetail(BatchDispatchDetail batchDispatchDetail) { context.BatchDispatchDetails.Add(batchDispatchDetail); }