title: Cannot implicity convert "void" to "bool"
body: <p>Can anyone point to me what is wrong with the code I have? The first function is on a different aspx file than the second function.</p>
  
  <pre><code>    protected void btnManageUsersAddUser_Click(object sender, EventArgs e)
  {
      if (clsDataLayer.SaveUser(Server.MapPath("PayrollSystem_DB.mdb"), txtManageUsersName.Text, txtManageUsersPassword.Text, ddlSecurityLevel.SelectedValue))
      {
          lblAddUserMsg.Text = "The user was successfully added";
          grdManagePersonnel.DataBind();
      }
      else
      {
          lblAddUserMsg.Text = "The user was not successfully added";
      }
  </code></pre>
  
  <p>The following function has originally "bool" instead of "void" but my professor told me to change it to "void" due to error of not all returns a value.</p>
  
  <pre><code>    public static void SaveUser(string Database, string UserName, string UserPassword, string SecurityLevel)
  {
  
      bool recordSaved;
  
      try
      {
          // Create connection
          OleDbConnection conn = new OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0;" +
                                                     "Data Source=" + Database);
          conn.Open();
          OleDbCommand command = conn.CreateCommand();
          string strSQL;
  
          // Insert to tblUserLogin
          strSQL = "Insert into tblUserLogin " +
                   "(UserName, UserPassword, SecurityLevel) values ('" +
                   UserName + "', '" + UserPassword + "', '" + SecurityLevel + "')";
  
          // Process data
          command.CommandType = CommandType.Text;
          command.CommandText = strSQL;
  
          // Add your comments here
          command.ExecuteNonQuery();
  
          // Closes the transaction when true
          conn.Close();
          recordSaved = true;
  
  
      }
              catch (Exception ex)
      {
  
      }
  
  }
  </code></pre>