title: Asp.Net MVC how to call a method from a instanc of a class by buttonClick event
body: <p>I made a WakeUp program for my Company and I'm new at ASP.NET.
  I´ve got the host class with the strings <code>dnsName</code>, <code>IpAddress</code>, <code>MacAddress</code> and the method <code>WakeUP()</code>. Now I need a button, which calls the WakeUP method of the instance of Model[i], by the onButtonClick Event.</p>
  
  <pre><code>@for (int i = 0; i &lt; Model.Length; i++)
  {
      &lt;tr&gt;
          &lt;td&gt;@Model[i].DnsName&lt;/td&gt;
          &lt;td&gt;@Model[i].IpAddress&lt;/td&gt;
          &lt;td&gt;@Model[i].MacAddress&lt;/td&gt;
          &lt;td&gt;
             --&gt; Here I need a button to call the wakeUp() method from Model[i]
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  </code></pre>
  
  <p>thanks for help :)</p>