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 <ActionResult <PreshipmentInspectionFinding> > PostPreshipmentInspectionFinding(PreshipmentInspectionFinding preshipmentInspectionFinding)
        {
            _context.PreshipmentInspectionFindings.Add(preshipmentInspectionFinding);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetPreshipmentInspectionFinding", new { id = preshipmentInspectionFinding.Id }, preshipmentInspectionFinding));
        }