public UserController(
     UserManager <ApplicationUser> userManager,
     IConfiguration config,
     KhaoSatDbContext context
     )
 {
     _userManager = userManager;
     _config      = config;
     _context     = context;
 }
示例#2
0
        public UnitOfWork(IDbContextFactory <KhaoSatDbContext> dbContextFactory, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor)
        {
            _dbContext = dbContextFactory.GetContext();

            UserAnswersRepository = new UserAnswersRepository(_dbContext);
            UserRepository        = new UserRepository(_dbContext);
            UserSurveysRepository = new UserSurveysRepository(_dbContext);
            SurveysRepository     = new SurveyRepository(_dbContext);
            AnswerRepository      = new AnswerRepository(_dbContext);
            QuestionsRepository   = new QuestionsRepository(_dbContext);
        }
 public BaoCaoThongKeController(KhaoSatDbContext context)
 {
     _context = context;
 }
 public CanBoBenhViensController(KhaoSatDbContext context)
 {
     _context = context;
 }
示例#5
0
 public BenhNhansController(KhaoSatDbContext context)
 {
     _context = context;
 }
示例#6
0
 public MauKhaoSatsController(KhaoSatDbContext context)
 {
     _context = context;
 }
 public ChiTietPhieuDanhGiasController(KhaoSatDbContext context)
 {
     _context = context;
 }
 public CauHoiKhaoSatsController(KhaoSatDbContext context)
 {
     _context = context;
 }
示例#9
0
 public PhanQuyensController(KhaoSatDbContext context)
 {
     _context = context;
 }
示例#10
0
 public MucDoHaiLongsController(KhaoSatDbContext context)
 {
     _context = context;
 }