public async Task <ActionResult <ReceptionE> > PostReceptionE(ReceptionE receptionE) { _context.receptionEs.Add(receptionE); await _context.SaveChangesAsync(); return(CreatedAtAction("GetReceptionE", new { id = receptionE.Id }, receptionE)); }
public async Task <IActionResult> PutReceptionE(int id, ReceptionE receptionE) { if (id != receptionE.Id) { return(BadRequest()); } _context.Entry(receptionE).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ReceptionEExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }