public async Task <ActionResult <Contamination> > PostContamination(Contamination contamination)
        {
            appliactionDbContext.contaminations.Add(contamination);
            await appliactionDbContext.SaveChangesAsync();

            return(null);
        }
        public async Task <IActionResult> PutContamination(string id, Contamination contamination)
        {
            if (id != contamination.codeContamination)
            {
                return(BadRequest());
            }

            appliactionDbContext.Entry(contamination).State = EntityState.Modified;

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

            return(NoContent());
        }