Exemplo n.º 1
0
 public PostController(IPostService postService, ICommentService commentService, ILikeService likeService, IMapper mapper)
 {
     _postService    = postService ?? throw new ArgumentException(nameof(postService));
     _commentService = commentService ?? throw new ArgumentException(nameof(commentService));
     _likeService    = likeService ?? throw new ArgumentException(nameof(likeService));
     _mapper         = mapper ?? throw new ArgumentException(nameof(mapper));
 }
Exemplo n.º 2
0
 public DashboardController(UserManager <User> userManager, IPostService postService, ICommentService commentService, ILikeService likeService)
 {
     _userManager    = userManager;
     _postService    = postService;
     _commentService = commentService;
     _likeService    = likeService;
 }
Exemplo n.º 3
0
 public MessageService(IUserService userService, ILikeService likeService, IMapper mapper, DataContext context)
 {
     _userService = userService;
     _likeService = likeService;
     _mapper      = mapper;
     _context     = context;
 }
Exemplo n.º 4
0
 public BlogController(IBlogService _blogService, ICommentService _commnetService, ILikeService _likeService, IHostingEnvironment _env)
 {
     blogService    = _blogService;
     commentService = _commnetService;
     likeService    = _likeService;
     env            = _env;
 }
Exemplo n.º 5
0
 public ForumController(IPostService postService, ILikeService likeService, ICommentService commentService, UserManager <ApplicationUser> userManager)
 {
     this.postService    = postService;
     this.likeService    = likeService;
     this.commentService = commentService;
     this.userManager    = userManager;
 }
Exemplo n.º 6
0
 public BaiVietController(ILikeService likeService, IErrorService errorService, IBaiVietService baiVietService, IBinhLuanService binhLuanService)
     : base(errorService)
 {
     _baiVietService  = baiVietService;
     _binhLuanService = binhLuanService;
     _likeService     = likeService;
 }
Exemplo n.º 7
0
 public UserProfileController(IMapper mapper, IUserService userService, ILikeService likeService, IPostService postService)
 {
     _mapper      = mapper;
     _userService = userService;
     _postService = postService;
     _likeService = likeService;
 }
Exemplo n.º 8
0
 public LikeController(IPostService postService, ILikeService likeService, IMapper mapper, ICommentService commentService)
 {
     _postService    = postService;
     _likeService    = likeService;
     _mapper         = mapper;
     _commentService = commentService;
 }
Exemplo n.º 9
0
 public LikesController(IMapper mapper, IUserService userService, ILikeService likeService, IHubContext <NotificationHub> notificationHub)
 {
     _mapper          = mapper;
     _likeService     = likeService;
     _userService     = userService;
     _notificationHub = notificationHub;
 }
 public LikesController(ILikeService likeService, IMapper mapper,
                        ICustomValidators customValidators)
 {
     _mapper           = mapper;
     _likeService      = likeService;
     _customValidators = customValidators;
 }
Exemplo n.º 11
0
 public PostController(IPostService postService, IUserService userService, ICommentService commentService, ILikeService likeService)
 {
     this.postService    = postService;
     this.userService    = userService;
     this.commentService = commentService;
     this.likeService    = likeService;
 }
Exemplo n.º 12
0
 public LikesController(ICountService countService, ILikeService likeService, IMapper mapper, IPhotoService photoService)
 {
     _likeService  = likeService;
     _mapper       = mapper;
     _photoService = photoService;
     _countService = countService;
 }
Exemplo n.º 13
0
 public CoursesController(ICourseService courseService, UserManager <User> userManager, ILikeService like, ICommentService commentService)
 {
     _commentService = commentService;
     _like           = like;
     _courseService  = courseService;
     _userManager    = userManager;
 }
Exemplo n.º 14
0
 public LikesController(ILikeService likeService, UserManager <ApplicationUser> userManager, INotificationsService notificationsService, IBeatsService beatsService)
 {
     this.likeService          = likeService;
     this.userManager          = userManager;
     this.notificationsService = notificationsService;
     this.beatsService         = beatsService;
 }
 public PublicationController()
 {
     Service        = new PublicationService();
     Service1       = new CommentService();
     userService    = new UserService();
     dislikeService = new DislikeService();
     likeService    = new LikeService();
 }
Exemplo n.º 16
0
 public LikeController(ILikeService likeService,
                       IUserService userService
                       , ILogService logService
                       )
     : base(userService, logService)
 {
     this.serviceLike = likeService;
 }
Exemplo n.º 17
0
 public PostController(IMapper mapper, IPostService postService, ILikeService likeService, IWebHostEnvironment environment, ICommentService commentService)
 {
     _mapper         = mapper;
     _postService    = postService;
     _likeService    = likeService;
     _environment    = environment;
     _commentService = commentService;
 }
Exemplo n.º 18
0
 public UserController(IMapper mapper, IUserService userService, IWebHostEnvironment environment, ILikeService likeService, ICommentService commentService)
 {
     _likeService    = likeService;
     _commentService = commentService;
     _mapper         = mapper;
     _userService    = userService;
     _environment    = environment;
 }
 public UserViewComponent(UserManager <ApplicationUser> userManager, IReportService reportService, IInvestigationService investigationService, ICommentService commentService, ILikeService likeService)
 {
     _userManager          = userManager;
     _reportService        = reportService;
     _investigationService = investigationService;
     _commentService       = commentService;
     _likeService          = likeService;
 }
Exemplo n.º 20
0
 public PublicationCommentService(IRepository<PublicationComment> publicationCommentRepository,
     IUserService userService,
     ILikeService likeService)
 {
     _publicationCommentRepository = publicationCommentRepository;
     _userService = userService;
     _likeService = likeService;
 }
Exemplo n.º 21
0
 public LikeController(ILikeService likeService, IUserService userService, IMapper mapper, INotificationService notiService, IAlbumService albumService)
 {
     this._likeService  = likeService;
     this._userService  = userService;
     this._mapper       = mapper;
     this._notifService = notiService;
     this._albumService = albumService;
 }
Exemplo n.º 22
0
 public MainController(IUserService userService, IPictureService pictureService, ILikeService likeService, IRoleService roleService)
 {
     _userService = userService;
     _pictureService = pictureService;
     _likeService = likeService;
     _roleService = roleService;
     _logger = LogManager.GetLogger("logfile");
 }
Exemplo n.º 23
0
 public NewsController(INewsService newsService, UserManager <User> userManager, ICommentaryService commentaryService, IRatingService ratingService, ILikeService likeService)
 {
     this.newsService       = newsService;
     this.userManager       = userManager;
     this.commentaryService = commentaryService;
     this.ratingService     = ratingService;
     this.likeService       = likeService;
 }
Exemplo n.º 24
0
 public CatalogCommentService(IRepository<CatalogComment> CatalogCommentRepository,
     IUserService userService,
     ILikeService likeService)
 {
     _CatalogCommentRepository = CatalogCommentRepository;
     _userService = userService;
     _likeService = likeService;
 }
Exemplo n.º 25
0
 public CommentsViewComponent(IMapper mapper, ICommentService commentService, IProfilService profileService,
                              ILikeService likeService)
 {
     this.mapper         = mapper;
     this.commentService = commentService;
     this.profileService = profileService;
     this.likeService    = likeService;
 }
 public LikesController(
     ILikeService likeService,
     IMapper mapper
     )
 {
     _likeService = likeService;
     _mapper      = mapper;
 }
Exemplo n.º 27
0
 public LikeController(ILikeService likeService,
     IUserService userService
      , ILogService logService
     )
     : base(userService, logService)
 {
     this.serviceLike = likeService;
 }
Exemplo n.º 28
0
 public PhotosController(IUserSessionService userSessionService,
                         IPhotoFileProcessor photoFileProcessor,
                         ILikeService likeService)
 {
     this._userSessionService = userSessionService;
     this._photoFileProcessor = photoFileProcessor;
     this._likeService        = likeService;
 }
Exemplo n.º 29
0
        public async Task Init()
        {
            _unitOfWork   = new UnitOfWork(_context);
            _kweetService = new KweetService(new KweetRepository(_context, _unitOfWork));
            _userService  = new UserService(new UserRepository(_context, _unitOfWork));
            _likeService  = new LikeService(new Repository <Like>(_context, _unitOfWork));

            await Seed();
        }
Exemplo n.º 30
0
 public PostsController(IPostService postService, IMapper mapper, UserManager <User> userManager,
                        IUriService uriService, ILikeService likeService)
 {
     _postService = postService;
     _mapper      = mapper;
     _userManager = userManager;
     _uriService  = uriService;
     _likeService = likeService;
 }
Exemplo n.º 31
0
 public PublicationApiController()
 {
     MyService      = new PublicationService();
     CommentService = new CommentService();
     dislikeService = new DislikeService();
     likeService    = new LikeService();
     Index();
     publicationsModels = Index().ToList();
 }
Exemplo n.º 32
0
 public EventsController(ICategoryService categoryService, IEventService eventService,
                         UserManager <User> userManager, ICommentRepository commentRepository, ILikeService likeService)
 {
     _categoryService   = categoryService;
     _eventService      = eventService;
     _userManager       = userManager;
     _commentRepository = commentRepository;
     _likeService       = likeService;
 }
 public CategoryController(ICategoryService categoryService, IPostService postService,
                           ICommentService commentService, ILikeService likeService, IUserService userService)
 {
     this.categoryService = categoryService;
     this.postService     = postService;
     this.commentService  = commentService;
     this.likeService     = likeService;
     this.userService     = userService;
 }
Exemplo n.º 34
0
 public CustomerDataService(IPointService pointService, IUserService userService, ILikeService likeService, ICustomerRepository customerRepository, IOutSiteCustomerRepository outSiteCustomerRepository, IVerifyCodeRepository verifyCodeRepository, IResourceService resourceService)
 {
     _likeService               = likeService;
     _customerRepository        = customerRepository;
     _outSiteCustomerRepository = outSiteCustomerRepository;
     _verifyCodeRepository      = verifyCodeRepository;
     _resourceService           = resourceService;
     _userService               = userService;
     _pointService              = pointService;
 }
Exemplo n.º 35
0
 public CustomerDataService(IPointService pointService, IUserService userService, ILikeService likeService, ICustomerRepository customerRepository, IOutSiteCustomerRepository outSiteCustomerRepository, IVerifyCodeRepository verifyCodeRepository, IResourceService resourceService)
 {
     _likeService = likeService;
     _customerRepository = customerRepository;
     _outSiteCustomerRepository = outSiteCustomerRepository;
     _verifyCodeRepository = verifyCodeRepository;
     _resourceService = resourceService;
     _userService = userService;
     _pointService = pointService;
 }
Exemplo n.º 36
0
 public CommentController(ICommentService customerCommentService,
     IUserService customerService,
     ILikeService customerLikeService,
     IMediaService pictureService, MediaSettings mediaSettings)
 {
     _customerCommentService = customerCommentService;
     _customerService = customerService;
     _customerLikeService = customerLikeService;
     _pictureService = pictureService;
     _mediaSettings = mediaSettings;
 }
Exemplo n.º 37
0
 public TimelineController(ITimelineService timelineService,
     IFollowService customerFollowService,
     IUserService userService,
     IMediaService pictureService,
     MediaSettings mediaSettings,
     IVideoBattleService videoBattleService, 
     ILikeService customerLikeService, 
     ICommentService customerCommentService)
 {
     _timelineService = timelineService;
     _customerFollowService = customerFollowService;
     _userService = userService;
     _pictureService = pictureService;
     _mediaSettings = mediaSettings;
     _videoBattleService = videoBattleService;
     _customerLikeService = customerLikeService;
     _customerCommentService = customerCommentService;
 }
 public LikeController(IUserService userService, ILikeService likeService)
 {
     _likeService = likeService;
     _userService = userService;
 }