// constructor, hämtar in modellen som en ramverkstjänst public ErrandDetailViewComponent(IErrandRep repo) { _repo = repo; }
// constructor, hämtar in interface från startup.cs. DI public ManagerController(IErrandRep repo, IHttpContextAccessor cont) { _repo = repo; contextAcc = cont; }
// constructor, tar in interface från .net-ramverkets tjänster public InvestigatorController(IErrandRep repo, IHostingEnvironment env, IHttpContextAccessor cont) { _repo = repo; environment = env; contextAcc = cont; }
// constructor, tar in ett interface från .net-ramverkets tjänster som en tjänst (DI) public CoordinatorController(IErrandRep repo) { _repo = repo; }
public ErrandTableViewComponent(IErrandRep repo) { _repo = repo; }
public CitizenController(IErrandRep repo) { _repo = repo; }