示例#1
0
 public ResourceRepo(ManagerDbContext ctx, IRemoveService service, ILoggerService logger,
                     ILeasingDataRepo leasingData, IResourceDataFactory resourceDataFactory)
 {
     Ctx                  = ctx;
     removeService        = service;
     _logger              = logger;
     _leasingData         = leasingData;
     _resourceDataFactory = resourceDataFactory;
 }
示例#2
0
 public ResourcesController(IResourceRepo resources, ITenantRepo tenants, IConfiguration config,
                            ILoggerService logger, IEmailService email, ILeasingDataRepo leasingDatas,
                            IResourceDataFactory resourceDataFactory)
 {
     _resources           = resources;
     _tenants             = tenants;
     _config              = config;
     _logger              = logger;
     _email               = email;
     _resourceDataFactory = resourceDataFactory;
     _leasingDatas        = leasingDatas;
     dateFormat           = _config.GetSection("DateFormats").GetSection("Default").Value;
 }