public async Task <IActionResult> PutPreshipmentInspectionFinding(Guid id, PreshipmentInspectionFinding preshipmentInspectionFinding) { if (id != preshipmentInspectionFinding.Id) { return(BadRequest()); } _context.Entry(preshipmentInspectionFinding).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PreshipmentInspectionFindingExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutExporterShippingDetail(Guid id, ExporterShippingDetail exporterShippingDetail) { if (id != exporterShippingDetail.Id) { return(BadRequest()); } _context.Entry(exporterShippingDetail).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ExporterShippingDetailExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }