public async Task <IActionResult> PutOtoscopeTestResult(int id, OtoscopeTestResult otoscopeTestResult)
        {
            if (id != otoscopeTestResult.OtoscopeTestResultId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <ActionResult <OtoscopeTestResult> > PostOtoscopeTestResult(OtoscopeTestResult otoscopeTestResult)
        {
            _context.OtoscopeTestResults.Add(otoscopeTestResult);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetOtoscopeTestResult", new { id = otoscopeTestResult.OtoscopeTestResultId }, otoscopeTestResult));
        }