public async Task <IActionResult> PutProductsdetail(Guid id, Productsdetail productsdetail) { if (id != productsdetail.Id) { return(BadRequest()); } _context.Entry(productsdetail).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ProductsdetailExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutCustomers(Guid id, Customers customers) { if (id != customers.Id) { return(BadRequest()); } _context.Entry(customers).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CustomersExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }