예제 #1
0
 public PostController(
     IRepository <Post> postRepository,
     IVisitLoggerService visitLogger,
     IRepository <Data.Blog> blogRepo,
     IHttpContextService httpContext)
     : base(blogRepo, httpContext)
 {
     _postRepository = postRepository;
     _visitLogger    = visitLogger;
     _blogRepo       = blogRepo;
 }
예제 #2
0
        public PostController(
            IRepository<Post> postRepository, 
            IVisitLoggerService visitLogger, 
            IRepository<Data.Blog> blogRepo,
            IHttpContextService httpContext)
            : base(blogRepo, httpContext)
		{
			_postRepository = postRepository;
			_visitLogger = visitLogger;
            _blogRepo = blogRepo;
		}