예제 #1
0
        //private readonly ILogger<HomeController> _logger;
        //private readonly SignInManager<IdentityUser> _signInManager;

        //public HomeController(ILogger<HomeController> logger)
        //{
        //_logger = logger;
        //}

        //IServiceProvider _serviceProvider;
        public HomeController(ApplicationDbContext context, UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IServiceProvider serviceProvider)
        {
            //_serviceProvider = serviceProvider;
            _signInManager = signInManager;
            _userManager   = userManager;
            _curso         = new LCursos(context, null);
        }
 public InscripcionesController(ApplicationDbContext context, UserManager <IdentityUser> userManager,
                                SignInManager <IdentityUser> signInManager, IWebHostEnvironment hostingEnvironment)
 {
     _hostingEnvironment = hostingEnvironment;
     _signInManager      = signInManager;
     _userManager        = userManager;
     _curso = new LCursos(context, null);
 }
예제 #3
0
 public CursosController(ApplicationDbContext context, SignInManager <IdentityUser> signInManager, IWebHostEnvironment environment)
 {
     _signInManager = signInManager;
     _lcategoria    = new LCategorias(context);
     _curso         = new LCursos(context, environment);
 }