public async Task <IActionResult> PutCliente(string id, Cliente itemCliente) { if (id != (itemCliente.CLIENTE_ID)) { return(BadRequest()); } _context.Entry(itemCliente).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <IActionResult> PutProducto(string id, Producto item) { if (id != item.PRODUCTO_ID) { return(BadRequest()); } //var task = _context.TaskItems.FindAsync(id); _context.Entry(item).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <IActionResult> PutTaskItem(string id, Maestrafactura item) { if (id != item.MAESTRO_ID) { return(BadRequest()); } //var task = _context.TaskItems.FindAsync(id); _context.Entry(item).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <IActionResult> PutVendedor(string id, Vendedor item) { if (id != item.VENDEDOR_ID) { return(BadRequest()); } //var task = _context.TaskItems.FindAsync(id); _context.Entry(item).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }