コード例 #1
0
ファイル: HomeController.cs プロジェクト: Balumaji/ODT
 public HomeController(
     IUserService userService,
     IUserPostsService userPostService,
     ICacheService cacheService)
 {
     _userService     = userService;
     _userPostService = userPostService;
     _cacheService    = cacheService;
 }
コード例 #2
0
 public HomeController(
     UserManager <ApplicationUser> userManager,
     AppDbContext context,
     UserService service,
     IUserPostsService userPostsService,
     IMapper mapper
     )
 {
     _userManager      = userManager;
     _context          = context;
     _service          = service;
     _userPostsService = userPostsService;
     _mapper           = mapper;
 }
コード例 #3
0
 public UserPostsController(IUserPostsService userPostsService)
 {
     _userPostsService = userPostsService;
 }
コード例 #4
0
 public UserPostsController(IUserPostsService userPostsService, UserManager <ApplicationUser> userManager)
 {
     this.userPostsService = userPostsService;
     this.userManager      = userManager;
 }
コード例 #5
0
 public MyProfileController(IUserPostsService userPostsService, IMapper mapper)
 {
     _userPostsService = userPostsService;
     _mapper           = mapper;
 }