public string AddSupplier(SupplierModel supplier) { string result = string.Empty; SUPPLIER supplierEntity = GetSupplierEntity(supplier); if (supplierEntity != null) { _context.SUPPLIERs.Add(supplierEntity); _context.SaveChanges(); result = supplierEntity.SUPLNO; } return(result); }
public string AddPoDetail(PoDetailModel poDetail) { string result = string.Empty; PODETAIL poDetailEntity = GetPoDetailEntity(poDetail); if (poDetailEntity != null) { _context.PODETAILs.Add(poDetailEntity); _context.SaveChanges(); result = poDetailEntity.PONO; } return(result); }
public string AddItem(ITEMModel itemModel) { string result = string.Empty; ITEM itemEntity = GetItemEntity(itemModel); if (itemEntity != null) { _context.ITEMs.Add(itemEntity); _context.SaveChanges(); result = itemEntity.ITCODE; } return(result); }
public string AddPoMaster(PoMasterModel poMaster) { string result = string.Empty; POMASTER poMasterEntity = GetPoMasterEntity(poMaster); if (poMasterEntity != null) { _context.POMASTERs.Add(poMasterEntity); _context.SaveChanges(); result = poMasterEntity.PONO; } return(result); }