ASP.NET MVC does not have the matching return type
<p>I have the following code in my repository:</p>

<pre><code>public PerformanceDetails performanceDetails(String name, String year)
{
    var PerformanceDetails = (from s in _db.PerformanceDetails where s.venue == name &amp;&amp; s.year == year select s).First();

    return PerformanceDetails;
}
</code></pre>

<p>and then this is the interface:</p>

<pre><code>Performance performanceDetails(String name, String year);
</code></pre>

<p>In the controller I have the following ActionResult:</p>

<pre><code>public ActionResult Details(String name, String year)
{
    return View(_repository.performanceDetails(name, year));
}
</code></pre>

<p>As far as I can tell this should be fine but when I try and build the solution it gives an error saying:</p>

<blockquote>
  <p>Error 1   'u0558234_assignment2.Models.StageRepository' does not implement interface member 'u0558234_assignment2.Models.IStageRepository.performanceDetails(string, string)'. 'u0558234_assignment2.Models.StageRepository.performanceDetails(string, string)' cannot implement 'u0558234_assignment2.Models.IStageRepository.performanceDetails(string, string)' because it does not have the matching return type of 'u0558234_assignment2.Models.Performance'.    C:\Users\cameron\Desktop\u0558234_assignment2\u0558234_assignment2\Models\StageRepository.cs    8   18  u0558234_assignment2</p>
</blockquote>

<p>Any ideas what the problem is? Thanks</p>
