I have the following controller, inside an area called "Service":
namespace Web.Areas.Service.Controllers
{
public class IntervalController : Controller
{
//
// GET: /Service/Interval/
public JsonResult Monitor(String accountId, int datekey)
{
//...
}
}
}
The URL
http://localhost/Web/Service/Interval/Monitor?accountid=123&datekey=123
is returning an ASP.net error:
"The parameters dictionary contains a null entry for parameter 'accountId' of non-nullable type 'System.Guid' for method 'System.Web.Mvc.JsonResult Monitor(System.Guid, Int32)'"
How can I set up routing to pass the parameters to the controller properly?