Exemplo n.º 1
0
 public HomeController(IBlogItemService BlogService,
                       UserManager <IdentityUser> userManager, ApplicationDbContext context)
 {
     _BlogService = BlogService;
     _userManager = userManager;
     _context     = context ?? throw new ArgumentNullException(nameof(context));
 }
Exemplo n.º 2
0
 public StatsController(IChannelService channelService, IBlogItemService blogItemService,
                        UserManager <IdentityUser> userManager, ApplicationDbContext context)
 {
     _blogItemService = blogItemService;
     _channelService  = channelService;
     _userManager     = userManager;
     _context         = context ?? throw new ArgumentNullException(nameof(context));
 }