我正在开发“ Code Camper ”示例 SPA 应用程序。我在安装了 MVC 4 的 VS 2010 上运行该应用程序。但是我遇到了 LookupsController 的问题。
这是我得到的错误:
"exceptionMessage":"Multiple actions were found that match the request: \r\nSystem.Collections.Generic.IEnumerable`1[CodeCamper.Model.Room] GetRooms() on type
CodeCamper.Controllers.LookupsController\r\nSystem.Collections.Generic.IEnumerable`1[CodeC
amper.Model.TimeSlot] GetTimeSlots() on type
CodeCamper.Controllers.LookupsController","exceptionType":"System.InvalidOperationException
","stackTrace":" at System.Web.Http.Controllers.ApiControllerActionSelector.ActionSelectorCacheItem.SelectActio
n(HttpControllerContext controllerContext)\r\n at
System.Web.Http.Controllers.ApiControllerActionSelector.SelectAction(HttpControllerContext
controllerContext)\r\n at
System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext,
CancellationToken cancellationToken)\r\n at
System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsyncInternal(HttpRequestMessage
request, CancellationToken cancellationToken)\r\n at
System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request,
CancellationToken cancellationToken)"