public void Save(PurchaseOrderItem poItem) { context.PurchaseOrderItems.Add(poItem); context.SaveChanges(); }
public PurchaseOrderItem GetByTransactionLogId(int transLogId) { PurchaseOrderItem poItem = context.PurchaseOrderItems.FirstOrDefault(p => p.TransactionLogId == transLogId); return(poItem); }
public PurchaseOrderItem Find(int poItemId) { PurchaseOrderItem item = context.PurchaseOrderItems.Find(poItemId); return(item); }