示例#1
0
 public AccountController(Twitter2Context context, IMapper mapper, UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, RoleManager <IdentityRole> roleManager, IWebHostEnvironment hostingEnvironment)
 {
     _context = context;
     // _emailSender = emailSender;
     _mapper             = mapper;
     _userManager        = userManager;
     _signInManager      = signInManager;
     _roleManager        = roleManager;
     _hostingEnvironment = hostingEnvironment;
 }
示例#2
0
 public PublicacionController(PublicacionRepository repository, IWebHostEnvironment hostingEnvironment, Twitter2Context context)
 {
     _repository         = repository;
     _hostingEnvironment = hostingEnvironment;
     _context            = context;
 }