public static PO insertPO(APCEntities APCContext, Supplier supplier, Project project) { PO po = new PO(); po.Supplier = supplier; po.Project = project; po.DateCreated = DateTime.Today; po.Invoiced = false; APCContext.AddToPO(po); APCContext.SaveChanges(); return po; }
public static PO insertPO(APCEntities APCContext, Supplier supplier, Project project) { PO po = new PO(); po.Supplier = supplier; po.Project = project; po.DateCreated = DateTime.Today; po.Invoiced = false; APCContext.AddToPO(po); APCContext.SaveChanges(); return(po); }