public async Task <IActionResult> PutFunction(int id, Function function)
        {
            if (id != function.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PutSatisfactionLevel(int id, SatisfactionLevel satisfactionLevel)
        {
            if (id != satisfactionLevel.Id)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }