public TrainingDayManager(ApplicationDbContext dbContext) : base(dbContext) { _trainingDayModule = new TrainingDayModule(DbContext); _trainingExercisesService = WebAppConfiguration.ServiceProvider.GetService <ITrainingExercisesService>(); _userInfosService = WebAppConfiguration.ServiceProvider.GetService <IUserInfosService>(); ((BodyReportService)_trainingExercisesService).SetDbContext(DbContext); // for use same transaction }
public TrainingDayManager(SQLiteConnection dbContext) : base(dbContext) { _trainingDayModule = new TrainingDayModule(DbContext); }
public TrainingDayManager(ApplicationDbContext dbContext) : base(dbContext) { _trainingDayModule = new TrainingDayModule(DbContext); _userInfosService = new UserInfoService(DbContext); }