public async Task <IActionResult> PutTamanio(int id, Tamanio tamanio) { if (id != tamanio.Id) { return(BadRequest()); } _context.Entry(tamanio).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TamanioExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }