public async Task <IActionResult> PutAspNetUsers(string id, AspNetUsers aspNetUsers) { if (id != aspNetUsers.Id) { return(BadRequest()); } _context.Entry(aspNetUsers).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AspNetUsersExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutPoints(int id, Points points) { if (id != points.Id) { return(BadRequest()); } _context.Entry(points).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PointsExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }