title: how to call An ActionResult from Jquery
body: <p>this is my ActionResult    </p>
  
  <pre><code>{          
  
      UsersModel um = new UsersModel();
      um.Users = userRepository.GetAllUsers();
      um.UserCustomers = userRepository.GetAllUserCustomerConnections();
      um.UserTypes = enums.GetAllDescriptions(CodeType.UserType);
      um.Customers = userRepository.GetAllCustomers();
      um = SearchUsers(Request,um);
      return View(um);
  }
  </code></pre>
  
  <p>it uses the function SearchUsers :</p>
  
  <pre><code>    private UsersModel SearchUsers(HttpRequestBase request, UsersModel curModel)
      {
          try
          {
              // request parameters
              string userName = request.Params["user-name"];
              string firstName = request.Params["first-name"];
              string lastName = request.Params["last-name"];
              int status,type,businessId;
  
              if (!string.IsNullOrWhiteSpace(userName))
                  curModel.Users = curModel.Users.Where(u =&gt; u.Username.Contains(userName));
              if (!string.IsNullOrWhiteSpace(firstName))
                  curModel.Users = curModel.Users.Where(u =&gt; u.FirstName.Contains(firstName));
              if (!string.IsNullOrWhiteSpace(lastName))
                  curModel.Users = curModel.Users.Where(u =&gt; u.LastName.Contains(lastName));
              if (int.TryParse(request.Params["status-search"], out status))
                  curModel.Users = curModel.Users.Where(u =&gt; u.Status == status);
              if (int.TryParse(request.Params["userTypes-search"], out type))
                  curModel.Users = curModel.Users.Where(u =&gt; u.UserType == type);
              if (int.TryParse(request.Params["busi-name"], out businessId))
                  curModel.Users = curModel.Users.Where(u =&gt; u.LastCustomerId == businessId);
  
              return curModel;
          }
          catch
          {
              return curModel;
          }
  
      }
  </code></pre>
  
  <p>now i have on my view a button with the id "search-users"
  and my command in the js file :</p>
  
  <pre><code>$('#search-users').click(function () { 
  
      });
  </code></pre>
  
  <p>how can i post the HttpRequestBase to the controller ?</p>