public IActionResult Put([FromBody] TestWithScales test)
        {
            if (_dbContext.Tests.Any(te => te.Name == test.Name))
            {
                return(new StatusCodeResult(409));
            }

            var testEntity = test.ToEntity(_dbContext);

            _dbContext.Tests.Add(testEntity);
            _dbContext.SaveChanges();
            return(Ok());
        }
 public IActionResult Patch([FromBody] TestWithScales test)
 {
     return(NotFound());
 }