public async Task <IActionResult> PutCultivosPresentandos(int id, CultivosPresentandos item) { if (id != item.id) { return(BadRequest()); } _context.Entry(item).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <ActionResult <CultivosPresentandos> > PostCultivosPresentandos(CultivosPresentandos item) { _context.CultivosPresentandos.Add(item); await _context.SaveChangesAsync(); return(CreatedAtAction(nameof(GetCultivosPresentandos), new { id = item.id }, item)); }