title: Repository as parameter
body: <p>I created an Generic dropdown list to use in my controller:</p>
  
  <pre><code>GenericDropDownList("myDropDown");
  
      private void GenericDropDownList(string dropdownName, object selectedDepartment = null) {
  
      var dropdownQuery = unitOfWork.SalesRepository.Get(orderBy: q =&gt; q.OrderBy(d =&gt; d.FirstName));
  
      ViewData[dropdownName] = new SelectList(dropdownQuery, "LastName", "LastName", selectedDepartment);
      }
  </code></pre>
  
  <p>This seems to work fine. What I'm trying is to make the <code>unitOfWork.TestRepository</code> dynamic, so that I can use every available repository in the function:</p>
  
  <pre><code>GenericDropDownList("myDropDown", SalesRepository);
  
      private void GenericDropDownList(string dropdownName, object repository, object selectedDepartment = null) {
  
      var dropdownQuery = repository.Get(orderBy: q =&gt; q.OrderBy(d =&gt; d.FirstName));
  
      ViewData[dropdownName] = new SelectList(dropdownQuery, "LastName", "LastName", selectedDepartment);
      }
  </code></pre>
  
  <p>The above doesn't work. I get the following error:</p>
  
  <blockquote>
    <p>Error CS1061  'object' does not contain a definition for 'Get' and no
    extension method 'Get' accepting a first argument of type 'object'
    could be found</p>
  </blockquote>
  
  <p>Is it possible to make the dropdown as dynamic as I want?</p>