public void Configure(IApplicationBuilder app, IWebHostEnvironment env, AliceService aliceService) { aliceService.Load(); app.UseRouting(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); }
public AliceController(AliceService aliceService) { _aliceService = aliceService; }
public AliceController() { service = new AliceService(); }