public ExampleEntityAppService(IServiceProvider serviceProvider, IExampleEntityService exampleEntityService)
     : base(serviceProvider) =>
Beispiel #2
0
 public HomeController(IExampleEntityService exampleEntityService, IMapper mapper)
 {
     _exampleEntityService = exampleEntityService;
     _mapper = mapper;
 }
 // declare a public constructor that takes one parameter of type IExampleEntityService
 public ExampleEntityController(IExampleEntityService exampleEntityService)
 {
     // assign the parameter exampleEntityService to the field exampleEntityService
     this.exampleEntityService = exampleEntityService;
 }
Beispiel #4
0
 public ExampleEntityController(IExampleEntityService exampleEntityService, ILogger logger) : base(logger)
 {
     this._exampleEntityService = exampleEntityService;
 }