public async Task <ActionResult <Test5Result> > PostTest5Result(Test5Result test5Result) { _context.Test5Results.Add(test5Result); await _context.SaveChangesAsync(); return(CreatedAtAction("GetTest5Result", new { id = test5Result.Id }, test5Result)); }
public async Task <IActionResult> PutTest5Result(long id, Test5Result test5Result) { if (id != test5Result.Id) { return(BadRequest()); } _context.Entry(test5Result).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Test5ResultExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }