Esempio n. 1
0
 public ProjectsController(PSTS6Context context,
                           IMapper mapper,
                           IOptionsMonitor <ProjectSettings> settings,
                           BackgroundCalculations backgroundCalculations,
                           IRepository repo)
 {
     _context  = context;
     _mapper   = mapper;
     _settings = settings.CurrentValue;
     _backgroundCalculations = backgroundCalculations;
     _repo = repo;
 }
Esempio n. 2
0
 public DbRepository(PSTS6Context context, IHttpContextAccessor http, BackgroundCalculations backgroundCalculations, DbSet <ProjectTemplate> projectTemplate)
 {
     _context = context;
     _http    = http;
     _backgroundCalculations = backgroundCalculations;
 }