【发布时间】:2021-02-17 10:33:57
【问题描述】:
IInventoryServices 比方法 InventoryController.InventoryController(IInventoryServices) WebApplication.Api 更难访问
public class InventoryController : ControllerBase
{
private readonly IInventoryServices _services;
public InventoryController(IInventoryServices services)
{
_services = services;
}
}
【问题讨论】:
-
这能回答你的问题吗? Inconsistent accessibility
标签: .net model-view-controller