title: Calling interface method C#
body: <p>I am developing an ASP.net MVC application and I have a controller <code>ExceptionController</code> for displaying exceptions caught in my application.</p>
  
  <p>This controller implements an interface <code>IExceptionLogger</code> </p>
  
  <pre><code>public class ExceptionController : Controller, IExceptionLogger
    {...}
  </code></pre>
  
  <p>which has one method <code>void LogException(ExceptionDetail exceptionDetail);</code></p>
  
  <p>I have implemented the method inside the <code>ExceptionController</code> too.</p>
  
  <pre><code>void IExceptionLogger.LogException(ExceptionDetail exceptionDetail)
   {...}
  </code></pre>
  
  <p>Now I need to call the method <code>LogException()</code> from the action <code>Index</code> of the <code>ExceptionController</code>.</p>
  
  <pre><code>public ActionResult Index(ExceptionDetail exceptionDetail)
      {
        // Method must be called here
        return View(exceptionDetail);
      }
  </code></pre>
  
  <p>How can I do this?</p>