2 thoughts on “More info

  1. Hello,
    I am trying to use your project in vb.net but I get the following errors:

    Value of type ‘System.Web.Mvc.ActionResult’ cannot be converted to ‘System.Func(Of System.Web.Mvc.ActionResult)

    Code is:

    Imports System.Web.Routing
    Imports Dysphoria.Net.UrlRouting

    Public Class SiteUrls
    Inherits Urls

    Public Shared ContactUs As UrlPattern = Path(“contacts”)

    Shared Sub Register(routes As RouteCollection)

    routes.ForController(Of HomeController).MapRoute(ContactUs.Get, Function(c) c.Contacts)

    End Sub

    End Class

    Looks fine to me according to your documentation on how to map routes.

    1. Hi Simone, What’s your code for HomeController.Contacts? “Contacts” needs to be a method which returns an ActionResult. It looks like it might be a property rather than a method…?

Leave a Reply

Your email address will not be published. Required fields are marked *