public async Task <IActionResult> Putaa0004([FromRoute] int id, [FromBody] aa0004 aa0004) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id != aa0004.aa0004c01) { return(BadRequest()); } _context.Entry(aa0004).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!aa0004Exists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <ActionResult <aa0004> > Postaa0004(aa0004 aa0004) { if (aa0004Exists(aa0004.aa0004c11)) { return(BadRequest("This Task Is Exists!")); } _context.aa0004.Add(aa0004); await _context.SaveChangesAsync(); return(CreatedAtAction("Getaa0004", new { id = aa0004.aa0004c01 }, aa0004)); }
public async Task <IActionResult> Postaa0004([FromBody] aa0004 aa0004) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _context.aa0004_1.Add(aa0004); await _context.SaveChangesAsync(); return(CreatedAtAction("Getaa0004", new { id = aa0004.aa0004c01 }, aa0004)); }
public async Task <IActionResult> Putaa0004(aa0004 aa0004) { _context.Entry(aa0004).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!aa0004Exists(aa0004.aa0004c01)) { return(NotFound()); } else { throw; } } return(NoContent()); }