I have action in controller with ASP.NET MVC 5 attribute routing.
public class HomeController : BaseController
{
[Route("{srcFileFormat}-to-{dstFileFormat}")]
public ActionResult Converter(string srcFileFormat, string dstFileFormat)
{
}
}
I am trying to create url and always get Null instead of URL. Any suggestion how to use UrlHelper.Action and Attribute Routing together in my case?
@Url.Action("docx-to-pdf", "Home")