{
public string Login { get; }
public string Password { get; }
}
{
public string Login { get; set; }
public string Password { get; set; }
}
var newDivisions = _context.UserDivisions.Where(w => IdentityUser.UserDivisions.Any(x => w.Id == x.Id ))
IdentityUser.UserDivisions = newDivisions;
_context.Entry(identityUser).State = EntityState.Modified;