public void AddDriver(object obj) { if (SelectedStatus == "Active") { CurrentDriver.Status = true; } else { CurrentDriver.Status = false; } CurrentDriver.Salt = PasswordHandler.GenerateSalt(); CurrentDriver.Password = PasswordHandler.Md5Encrypt(CurrentDriver.Password, CurrentDriver.Salt); service.Add(CurrentDriver); Messenger.Default.Send(CurrentDriver); new NavService().NavigateTo("Drivers"); }