public IHttpActionResult PutDuplicateFile(int id, DuplicateFile duplicateFile)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != duplicateFile.DuplicateFileId)
            {
                return BadRequest();
            }

            db.Entry(duplicateFile).State = EntityState.Modified;

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!DuplicateFileExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostDuplicateFile(DuplicateFile duplicateFile)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.DuplicateFiles.Add(duplicateFile);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = duplicateFile.DuplicateFileId }, duplicateFile);
        }