public async Task <IActionResult> PutTms_ACHInformation(int id, Tms_ACHInformation tms_ACHInformation) { if (id != tms_ACHInformation.Achid) { return(BadRequest()); } _context.Entry(tms_ACHInformation).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!Tms_ACHInformationExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <ActionResult <Tms_ACHInformation> > PostTms_ACHInformation(Tms_ACHInformation tms_ACHInformation) { _context.Achinformation.Add(tms_ACHInformation); await _context.SaveChangesAsync(); return(CreatedAtAction("GetTms_ACHInformation", new { id = tms_ACHInformation.Achid }, tms_ACHInformation)); }