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?
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);
}
}
}