ASP.NET MVC F# controller action ignoring parameter
- by Matt H
Hi.
I have a C# ASP.NET MVC project but my controllers are written in F#.
For some reason, the following code doesn't work properly.
namespace MvcApplication8.Controllers
open System.Web.Mvc
[<HandleError>]
type ImageController() =
inherit Controller()
member x.Index (i : int) : ActionResult =
x.Response.Write i
x.View()…