public async Task <IActionResult> Putaa0002(int id, aa0002 aa0002) { if (id != aa0002.aa0002c01) { return(BadRequest()); } _context.Entry(aa0002).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!aa0002Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Putaa0003([FromRoute] int id, [FromBody] aa0003 aa0003) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != aa0003.aa0003c01) { return(BadRequest()); } _context.Entry(aa0003).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!aa0003Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> Putaa0001(aa0001 aa0001) { _context.Entry(aa0001).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!aa0001Exists(aa0001.aa0001c01)) { return(NotFound()); } else { throw; } } return(NoContent()); }