public string UpdateSupplier(SupplierModel supplier) { string result = string.Empty; SUPPLIER supplierEntity = GetSupplierEntity(supplier); if (supplierEntity != null) { _context.Entry(supplierEntity).State = EntityState.Modified; _context.SaveChanges(); result = supplierEntity.SUPLNO; } return(result); }
public string UpdatePoDetail(PoDetailModel poDetail) { string result = string.Empty; PODETAIL poDetailEntity = GetPoDetailEntity(poDetail); if (poDetailEntity != null) { _context.Entry(poDetailEntity).State = EntityState.Modified; _context.SaveChanges(); result = poDetailEntity.PONO; } return(result); }
public string UpdateItem(ITEMModel itemModel) { string result = string.Empty; ITEM itemEntity = GetItemEntity(itemModel); if (itemEntity != null) { _context.Entry(itemEntity).State = EntityState.Modified; _context.SaveChanges(); result = itemEntity.ITCODE; } return(result); }
public string UpdatePoMaster(PoMasterModel poMaster) { string result = string.Empty; POMASTER poMasterEntity = GetPoMasterEntity(poMaster); if (poMasterEntity != null) { _context.Entry(poMasterEntity).State = EntityState.Modified; _context.SaveChanges(); result = poMasterEntity.PONO; } return(result); }