/// <summary> /// Constructor for Channels Controller /// </summary> /// <param name="messageRepositories"></param> /// <param name="mapper"></param> public ChannelsController(IMessageRepositories messageRepositories, IMapper mapper) { _messageRepositories = messageRepositories; _mapper = mapper; }
/// <summary> /// Constructor for Messages Controller /// </summary> /// <param name="messageHub"></param> /// <param name="messageRepositories"></param> /// <param name="mapper"></param> public MessagesController(IHubContext <MessageHub> messageHub, IMessageRepositories messageRepositories, IMapper mapper) { _messageHub = messageHub; _messageRepositories = messageRepositories; _mapper = mapper; }