public async Task <IActionResult> PutFilesUserPasseport(int id, FilesUserPasseport filesUserPasseport)
        {
            if (id != filesUserPasseport.Id)
            {
                return(BadRequest());
            }

            _context.Entry(filesUserPasseport).State = EntityState.Modified;

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

            return(NoContent());
        }
        public async Task <ActionResult <FilesUserPasseport> > PostFilesUserPasseport(FilesUserPasseport filesUserPasseport)
        {
            _context.filesUserPasseports.Add(filesUserPasseport);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetFilesUserPasseport", new { id = filesUserPasseport.Id }, filesUserPasseport));
        }