Get current controller in view

后端 未结 7 884
北荒
北荒 2020-12-04 11:55

I have a View - _Edit which lives in News M/V/C.

I reuse the V/M via the CategoryController as:

r         


        
7条回答
  •  长情又很酷
    2020-12-04 12:28

    You are still in the context of your CategoryController even though you're loading a PartialView from your Views/News folder.

提交回复
热议问题