public async Task <IActionResult> PutUsersData(string id, UsersData usersData) { if (id != usersData.Address) { return(BadRequest()); } _context.Entry(usersData).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!UsersDataExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }