public async Task <IActionResult> PutMThrmsfiletest([FromRoute] int id, [FromBody] MThrmsfiletest mThrmsfiletest) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != mThrmsfiletest.Id) { return(BadRequest()); } _context.Entry(mThrmsfiletest).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!MThrmsfiletestExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PostMThrmsfiletest([FromBody] MThrmsfiletest mThrmsfiletest) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _context.MThrmsfiletest.Add(mThrmsfiletest); await _context.SaveChangesAsync(); return(CreatedAtAction("GetMThrmsfiletest", new { id = mThrmsfiletest.Id }, mThrmsfiletest)); }