private void Apply_Changes_Click(object sender, RoutedEventArgs e) { var items = new user(); items.usr_FirstName = txtbox_firstName.Text; items.usr_LastName = txtbox_lastName.Text; items.usr_PasswordReset = (bool)check_passwordReset.IsChecked; items.usr_ActiveAccount = (bool)check_activeAcount.IsChecked; items.usr_SecurityLevel = getSecurityLevel(); items.usr_Email = txtbox_email.Text; items.usr_ID = userID; userService.updateUser(items); getUsersAndLoadUserTable(); label_applyChanges.Foreground = (Brush)brushConverter.ConvertFrom("#FFFFFF"); Apply_Changes.Background = (Brush)brushConverter.ConvertFrom("#27ae60"); var item = new log(); item.log_Username = userInformation.user.usr_Username; item.log_DateTime = dateService.getCurrentDate(); item.log_Actions = "User Update Before: ( " + userIdLog + ", " + firstNameLog + ", " + lastNameLog + ", " + passwordResetLog.ToString() + ", " + activeAcountLog.ToString() + ", " + securityLevelLog + ", " + emailLog + " ), Now: ( " + items.usr_ID + ", " + items.usr_FirstName + ", " + items.usr_LastName + ", " + items.usr_Password + ", " + items.usr_ActiveAccount + ", " + items.usr_SecurityLevel + " ) by UserName= "******", Full Name= " + userInformation.user.usr_FirstName + " " + userInformation.user.usr_LastName + " in ManageUser"; logService.CreateLog(item); }