public TrainingWeekManager(ApplicationDbContext dbContext) : base(dbContext) { _trainingWeekModule = new TrainingWeekModule(DbContext); _trainingDaysService = WebAppConfiguration.ServiceProvider.GetService <ITrainingDaysService>(); _userInfosService = WebAppConfiguration.ServiceProvider.GetService <IUserInfosService>(); ((BodyReportService)_trainingDaysService).SetDbContext(DbContext); // for use same transaction }
public TrainingWeekManager(ApplicationDbContext dbContext) : base(dbContext) { _trainingWeekModule = new TrainingWeekModule(DbContext); _trainingDayService = new TrainingDayService(DbContext); _userInfosService = new UserInfoService(DbContext); }
public TrainingWeekManager(SQLiteConnection dbContext) : base(dbContext) { _trainingWeekModule = new TrainingWeekModule(DbContext); _trainingDayService = new TrainingDayService(DbContext); }