/// <summary>
        /// Tries the execute the save command
        /// </summary>
        private void SaveExecute()
        {
            try
            {
                service.AddUser(User);
                IsUpdateUser = true;

                editUser.Close();
            }
            catch (Exception ex)
            {
                Debug.WriteLine("Exception" + ex.Message.ToString());
            }
        }
 /// <summary>
 /// Method to execute save command and saves added song
 /// </summary>
 public void SaveExecute()
 {
     try
     {
         MessageBoxResult result = MessageBox.Show("Do you want to save changes?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question);
         if (result == MessageBoxResult.Yes)
         {
             service.EditUser(User);
             IsUpdateUser = true;
             MessageBox.Show("Your details succesfully changed.", "Notification", MessageBoxButton.OK);
             view.Close();
         }
         else
         {
             view.Close();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }