「 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)"