title: How do I return an integer to a View in ASP.NET MVC?
body: <p>In the following code I'm trying to return a view with an integer as its type.  The code below doesn't work. What am I missing?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  
  namespace MvcApplication5.Controllers
  {
      public class HomeController : Controller
      {
  
          public ActionResult Index(int answer)
          {
  
  
             int row = 2;
             int col = 1; 
  
             answer = row * col ; 
             return View(answer);
          }
  
      }
  }
  </code></pre>