public async Task <ActionResult <Receptioncs> > PostReceptioncs(Receptioncs receptioncs) { _context.receptioncs.Add(receptioncs); await _context.SaveChangesAsync(); return(CreatedAtAction("GetReceptioncs", new { id = receptioncs.Id }, receptioncs)); }
public async Task <IActionResult> PutReceptioncs(int id, Receptioncs receptioncs) { if (id != receptioncs.Id) { return(BadRequest()); } _context.Entry(receptioncs).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ReceptioncsExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }