List view page
@model IEnumerable<project_name.Models.ProductTypeCategoryVM>
<table class="table">
<tr>
Create view
@model project_name.Models.ProductTypeCategoryVM
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
@{Html.Action("ProductCategory_List", "Home");}
@using (Html.BeginForm())
{
but once I load Create page I can see only create page not the create page with list ,
There are some extra parenthesis in your code. Change
@{Html.Action("ProductCategory_List", "Home");}
to
@Html.Action("ProductCategory_List", "Home")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.