public AccountController(UserManager<Trainer> userManager) { this.UserManager = userManager; var dbCtx = new DatabaseContextFactory().Create(); this._sTraining = new TrainerService(dbCtx); }
public TrainingController() { var dbCtx = new DatabaseContextFactory().Create(); _sTraining = new TrainerService(dbCtx); }