public CostsheetController(ICostsheetRepository costSheetRepository, IQRFSummaryRepository qRFSummaryRepository, IOptions <MongoSettings> settings) { _costSheetRepository = costSheetRepository; _qRFSummaryRepository = qRFSummaryRepository; _MongoContext = new MongoContext(settings); }
public GenericRepository(IOptions <MongoSettings> settings, IConfiguration configuration, ICostsheetRepository costsheetRepository) { _MongoContext = new MongoContext(settings); _configuration = configuration; _costsheetRepository = costsheetRepository; }