public async void ChangePassword()
        {
            EditUser = new User.PutUser();

            if (User.User.IsBob == true)
            {
                EditUser.Bobs_ID = User.Bob.ID;
                EditUser.Users_ID = User.User.ID;
                EditUser.Firstname = User.User.Firstname;
                EditUser.Lastname = User.User.Lastname;
                EditUser.Email = User.User.Email;
                EditUser.Cellphone = User.User.Cellphone;
                EditUser.IsBob = User.User.IsBob.Value;
                EditUser.PricePerKm = User.Bob.PricePerKm;
                EditUser.BobsType_ID = User.Bob.BobsType_ID;
                EditUser.LicensePlate = User.Bob.LicensePlate;
                EditUser.AutoType_ID = User.Autotype.ID;

                EditUser.Password = Libraries.md5.Create(Password);

            }
            else
            {
                EditUser.Users_ID = User.User.ID;
                EditUser.Firstname = User.User.Firstname;
                EditUser.Lastname = User.User.Lastname;
                EditUser.Email = User.User.Email;
                EditUser.Cellphone = User.User.Cellphone;
                EditUser.IsBob = User.User.IsBob.Value;

                EditUser.Bobs_ID = null;
                EditUser.PricePerKm = null;
                EditUser.BobsType_ID = null;
                EditUser.LicensePlate = null;
                EditUser.AutoType_ID = null;

                EditUser.Password = Libraries.md5.Create(Password);

            }
            /*
            EditUser.Bobs_ID = User.Bob.ID;
            EditUser.Users_ID = User.User.ID;
            EditUser.Firstname = User.User.Firstname;
            EditUser.Lastname = User.User.Lastname;
            EditUser.Email = User.User.Email;
            EditUser.Cellphone = User.User.Cellphone;
            EditUser.IsBob = User.User.IsBob.Value;
            EditUser.PricePerKm = User.Bob.PricePerKm;
            EditUser.BobsType_ID = User.Bob.BobsType_ID;
            EditUser.LicensePlate = User.Bob.LicensePlate;
            EditUser.AutoType_ID = User.Autotype.ID;*/

            Response r = await UserRepository.EditUser(EditUser);
            if (r.Success)
            {
                var dialog = new MessageDialog("Uw gegevens zijn opgeslaan.");
                await dialog.ShowAsync();
            }
            else
            {
                var dialog = new MessageDialog("Er is een probleem met het opslaan van uw gegevens. Probeer het nog eens opnieuw.");
                await dialog.ShowAsync();
            }
        }
        public async void Aanpassen()
        {
            
            EditUser = new User.PutUser();

            if (User.User.IsBob == true)
            {
                EditUser.Bobs_ID = User.Bob.ID;
                EditUser.Users_ID = User.User.ID;
                EditUser.Firstname = User.User.Firstname;
                EditUser.Lastname = User.User.Lastname;
                EditUser.Email = User.User.Email;
                EditUser.Cellphone = User.User.Cellphone;
                EditUser.IsBob = User.User.IsBob.Value;
                EditUser.PricePerKm = User.Bob.PricePerKm;
                EditUser.BobsType_ID = SelectedTypeBob.ID;
                EditUser.LicensePlate = User.Bob.LicensePlate;
                EditUser.AutoType_ID = User.Autotype.ID;
            }
            else
            {
                EditUser.Users_ID = User.User.ID;
                EditUser.Firstname = User.User.Firstname;
                EditUser.Lastname = User.User.Lastname;
                EditUser.Email = User.User.Email;
                EditUser.Cellphone = User.User.Cellphone;
                EditUser.IsBob = User.User.IsBob.Value;

                EditUser.Bobs_ID = null;
                EditUser.PricePerKm = null;
                EditUser.BobsType_ID = null;
                EditUser.LicensePlate = null;
                EditUser.AutoType_ID = null;
            }
            
            //Updaten naar DB
            Response r = await UserRepository.EditUser(EditUser);
            if (r.Success)
            {
                MainViewVM.USER = await UserRepository.GetUser();

                var dialog = new MessageDialog("Uw gegevens zijn opgeslaan.");
                await dialog.ShowAsync();
            }
            else
            {
                var dialog = new MessageDialog("Er is een probleem met het opslaan van uw gegevens. Probeer het nog eens opnieuw.");
                await dialog.ShowAsync();
            }
        }