Exemplo n.º 1
0
 public HomeController(
     UserManager <ApplicationUser> userManager,
     IPostBehaviour postBehaviour,
     IUserBehaviour userBehavior,
     ILogger <HomeController> logger)
 {
     this.userManager   = userManager;
     this.postBehaviour = postBehaviour;
     this.userBehavior  = userBehavior;
     this.logger        = logger;
 }
Exemplo n.º 2
0
        //private readonly ILogger _logger;

        public PostController(
            IWebHostEnvironment hostEnvironment,
            UserManager <ApplicationUser> userManager,
            IPostBehaviour postBehaviour,
            IPhotoManager photoManager,
            ILogger <PostController> logger)
        {
            this.hostEnvironment = hostEnvironment;
            this.userManager     = userManager;
            this.postBehaviour   = postBehaviour;
            this.photoManager    = photoManager;
            this.logger          = logger;
        }