Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.Reflection.AmbiguousMatchException: The current request for action 'index' on controller type 'CategoryController' is ambiguous between the following action methods: System.Web.Mvc.ActionResult Index() on type Onclickmuseum.Controllers.CategoryController System.Web.Mvc.ActionResult Index(Onclickmuseum.Models.CategoryModel) on type Onclickmuseum.Controllers.CategoryController
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[AmbiguousMatchException: The current request for action 'index' on controller type 'CategoryController' is ambiguous between the following action methods: System.Web.Mvc.ActionResult Index() on type Onclickmuseum.Controllers.CategoryController System.Web.Mvc.ActionResult Index(Onclickmuseum.Models.CategoryModel) on type Onclickmuseum.Controllers.CategoryController]
System.Web.Mvc.Async.AsyncActionMethodSelector.FindAction(ControllerContext controllerContext, String actionName) +276
System.Web.Mvc.Async.ReflectedAsyncControllerDescriptor.FindAction(ControllerContext controllerContext, String actionName) +181
System.Web.Mvc.ControllerActionInvoker.FindAction(ControllerContext controllerContext, ControllerDescriptor controllerDescriptor, String actionName) +52
System.Web.Mvc.Async.AsyncControllerActionInvoker.BeginInvokeAction(ControllerContext controllerContext, String actionName, AsyncCallback callback, Object state) +295
System.Web.Mvc.<>c_DisplayClass1d.b_17(AsyncCallback asyncCallback, Object asyncState) +83
System.Web.Mvc.Async.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout) +161