Я этот маршрут зарегистрирован:маршрут MVC не вызывался
context.MapRoute(
"Manager",
"manage/{id}/{action}",
new { action = "index", controller = "manage", id = UrlParameter.Optional },
new string[] { "Web.Areas.Books.Controllers" }
);
Тогда у меня есть эти 2 URLs:
http://<site>/manage <-- hits the index action of managecontroller
http://<site>/manage/publish <-- ALSO HITS INDEX VIEW even I have publish action
Что может быть не хватает?
В принципе, мне нужно один маршрут, чтобы служить всем этим:
http://<site>/manage <-- should go to index action
http://<site>/manage/publish <-- should go to publish action
http://<site>/manage/delete <-- should go to delete action
http://<site>/manage/123123/update <-- should go to update action
См. Мое обновление. Спасибо за быстрый ответ – kheya
@Projapati Вам необходимо создать настраиваемый механизм просмотра, который вам нужен. – TheGeekYouNeed
@Projapati Попробуйте маршрут, который я разместил. –