public EmployeeService(Models.IEmployeeRepository settings) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _employee = database.GetCollection <Employee>(settings.EmployeeCollectionName); _qualification = database.GetCollection <EmployeeQualification>(settings.QualificationCollectionName); }
public HomeController(Models.IEmployeeRepository Er, IHostingEnvironment ihe) { _Er = Er; this.ihe = ihe; }
public HomeController(Models.IEmployeeRepository i_EmployeeRepository, IWebHostEnvironment i_HostingEnvironment, ILogger <HomeController> logger) { this.m_EmployeeRepository = i_EmployeeRepository; this.m_HostingEnvironment = i_HostingEnvironment; this.logger = logger; }