public async Task <IActionResult> PutTraConceptoCompra(int id, TraConceptoCompra traConceptoCompra) { if (id != traConceptoCompra.TraCompras) { return(BadRequest()); } _context.Entry(traConceptoCompra).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TraConceptoCompraExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutCatDirecciones(int id, CatDirecciones catDirecciones) { if (id != catDirecciones.Iddireccion) { return(BadRequest()); } _context.Entry(catDirecciones).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CatDireccionesExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutMtoCatUsuarios(int id, MtoCatUsuarios mtoCatUsuarios) { if (id != mtoCatUsuarios.Idusuario) { return(BadRequest()); } _context.Entry(mtoCatUsuarios).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!MtoCatUsuariosExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }