public BaseController()
 {
     this.userService                 = new UserService();
     this.rightService                = new RightService();
     this.locationService             = new LocationService();
     this.organisationService         = new OrganisationService();
     this.siteService                 = new SiteService();
     this.billService                 = new BillService();
     this.itemService                 = new ItemService();
     this.requestToAcquireItemService = new RequestToAcquireAssestService();
     this.eventService                = new EventService();
     this.assetService                = new AssetService();
     this.assetHistoryService         = new AssetHistoryService();
     this.requestForScrappingService  = new RequestForScrappingService();
     this.requestForRelocationService = new RequestForRelocationService();
     this.requestForRenovationService = new RequestForRenovationService();
     this.providerService             = new ProviderService();
     this.packingSlipService          = new PackingSlipService();
     this.requestForAssetService      = new RequestForAssetService();
     this.requestToProviderService    = new RequestToProviderService();
     this.currencyService             = new CurrencyService();
     this.invoiceService              = new InvoiceService();
     this.exchangeService             = new ExchangeRateService();
     this.accidentService             = new AccidentService();
     this.securityGroupService        = new SecurityGroupService();
 }
示例#2
0
 public AccidentController(IAccidentService accidentService, IUserService userService, ILogger <AccidentController> logger)
 => (_accidentService, _userService, _logger) = (accidentService, userService, logger);
 public AccidentsController(IAccidentService accidentService)
 {
     this.accidentService = accidentService;
 }