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