コード例 #1
0
 public PostModel(
     ICategoryPostsService postsService,
     IAdminCommentsService commentsService,
     IAdminRepliesService repliesService,
     IUserProfileService userService,
     UserManager <User> userManager)
 {
     this.postsService    = postsService;
     this.commentsService = commentsService;
     this.repliesService  = repliesService;
     this.userService     = userService;
     this.userManager     = userManager;
 }
コード例 #2
0
 public IndexModel(ICategoryPostsService postsService)
 {
     this.postsService = postsService;
     this.Posts        = new List <PostConciseViewModel>();
     this.Tags         = new List <string>();
 }
コード例 #3
0
 public PostsByCategory(ICategoryPostsService postsService)
 {
     this.postsService = postsService;
 }
コード例 #4
0
 public HomeController(ICategoryPostsService postsService, ICategoryService categoryService)
 {
     this.postsService    = postsService;
     this.categoryService = categoryService;
 }