public ExampleEntityAppService(IServiceProvider serviceProvider, IExampleEntityService exampleEntityService) : base(serviceProvider) =>
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; }
public ExampleEntityController(IExampleEntityService exampleEntityService, ILogger logger) : base(logger) { this._exampleEntityService = exampleEntityService; }