예제 #1
0
 public MessageService(IRepository <Message, int> messageRepository, IBlockListService blockListService, IHttpContextAccessor httpContextAccessor)
 {
     _messageRepository   = messageRepository;
     _blockListService    = blockListService;
     _httpContextAccessor = httpContextAccessor;
     _currentUser         = _httpContextAccessor.HttpContext?.User?.Identity?.Name;
 }
예제 #2
0
 public BlockListsController(IBlockListService blockListService, IMapper mapper)
 {
     _blockListService = blockListService;
     _mapper           = mapper;
     _validator        = new ValidateHelper();
 }