public ShiftController(IConfiguration configuration) { string connectionString = configuration.GetConnectionString("DefaultConnection"); _ishiftSaveContext = new ShiftMySQLContext(connectionString); shiftSaveRepository = new ShiftSaveRepository(_ishiftSaveContext); }
public GenerateScheduleController(IConfiguration configuration) { string connectionString = configuration.GetConnectionString("DefaultConnection"); _iShiftRetrieveContext = new ShiftMySQLContext(connectionString); shiftRetRepository = new ShiftRetRepository(_iShiftRetrieveContext); _iMemberRetrieveContext = new MemberMySQLContext(connectionString); memberRetRepository = new MemberRetRepository(_iMemberRetrieveContext); _ischeduldeSaveContext = new ScheduleMySQLContext(connectionString); scheduleSaveRepository = new ScheduleSaveRepository(_ischeduldeSaveContext); _ishiftSaveContext = new ShiftMySQLContext(connectionString); shiftSaveRepository = new ShiftSaveRepository(_ishiftSaveContext); }