public async Task <IActionResult> PutListVoyFile(int id, ListVoyFile listVoyFile)
        {
            if (id != listVoyFile.CustQuoteMasterId)
            {
                return(BadRequest());
            }

            // _context.Entry(listVoyFile).State = EntityState.Modified;

            try
            {
                _context.Entry(listVoyFile).Property(x => x.PurposeCall).IsModified    = true;
                _context.Entry(listVoyFile).Property(x => x.AgencyTypeDesc).IsModified = true;
                _context.Entry(listVoyFile).Property(x => x.VslEta).IsModified         = true;
                _context.Entry(listVoyFile).Property(x => x.VslEtd).IsModified         = true;
                _context.Entry(listVoyFile).Property(x => x.CallLocId).IsModified      = true;
                _context.Entry(listVoyFile).Property(x => x.LastUpdatedBy).IsModified  = true;
                _context.Entry(listVoyFile).Property(x => x.LastUpdatedDt).IsModified  = true;

                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!ListVoyFileExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <ListVoyFile> > PostListVoyFile(ListVoyFile listVoyFile)
        {
            _context.ListVoyFiles.Add(listVoyFile);
            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateException)
            {
                if (ListVoyFileExists(listVoyFile.CustQuoteMasterId))
                {
                    return(Conflict());
                }
                else
                {
                    throw;
                }
            }

            return(CreatedAtAction("GetListVoyFile", new { id = listVoyFile.CustQuoteMasterId }, listVoyFile));
        }