我想更改我的操作方法的路线:
[Route("NewEvalution")]
// GET: BackOffice/EvaluationHeaders/Create
public ActionResult Create()
{
ViewBag.EntityId = new SelectList(context.CompanyEntity, "EntityId", "EntityName");
return View();
}
我希望路线看起来像这样:
BackOffice / EvaluationHeaders / NewEvalution
答案 0 :(得分:0)
只需在“路线”属性中设置路线:
[Route("BackOffice/EvaluationHeaders/NewEvalution")]