I am basically inheriting the "TopicController" in Nop.Admin.Controllers
Then I am trying to override route (which I can easily do in the public namespace). I am trying to do like this:
routes.MapLocalizedRoute("TopicAdditionalInfoEdit",
"Topic/Edit/{id}",
new { controller = controllerName, action = "Edit", Area = "Admin"},
new { id = @"\d+" },
new[] { nameSpace });
Where controller and namespace obviously goes to my plugin instead.
Then I override the base class:
public override ActionResult Edit(int id)
{
return base.Edit(id);
}
public override ActionResult Edit(Nop.Admin.Models.Topics.TopicModel model, bool continueEditing)
{
return base.Edit(model, continueEditing);
}
Is this possible in any way?
Also - Am I going for a wrong path?. I could create an admin tab etc. But my issue is primarely when creating a topic I do not have any ID.
PS: thanks for a GREAT time on nopcommerce days 2016