title: System.web.Mvc DependencyResolver not able to create object for generic classes
body: <p>I am trying to use dependencyinjection in Controller and using
  System.Web.MvcDependencyResolver.Current.GetService() for creating service instances in controller class.</p>
  
  <p>This works fine when Service Interfaces are non generic as below</p>
  
  <pre><code>public interface IProfileManagementService
  {
     IList&lt;News&gt; GetSavedSearchList(int userObjectId, ApplicationType applicationType,int? vendorUserObjectId);
  }
  </code></pre>
  
  <p>and my dependency resolver syntax as below gives me instance of <strong>ProfileManagementService</strong></p>
  
  <pre><code>DependencyResolver.Current.GetService&lt;IProfileManagementService&gt;();
  </code></pre>
  
  <p>But If I create any generic service interface as below, </p>
  
  <pre><code>public interface ICommonProfileManagementService&lt;T&gt;
  {
     IList&lt;T&gt; GetSavedSearchList(int userObjectId, ApplicationType applicationType,int? vendorUserObjectId);
  }
  </code></pre>
  
  <p>But I get a null (<strong>CommonProfileManagementService</strong> objects are not created) for below code</p>
  
  <pre><code>DependencyResolver.Current.GetService&lt;ICommonProfileManagementService&lt;News&gt;&gt;();
  </code></pre>
  
  <p>Please Suggest some alternate ways of passing </p>
  
  <pre><code>IService&lt;T&gt;
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code>IService
  </code></pre>
  
  <p>to     DependencyResolver.Current.GetService()</p>