public IActionResult GetChannelMessages(int channelId, [FromServices] MessageDtoFactory messageDtoFactory, [FromServices] ChatEntityRepositoryProxy <Channel, ChatDbContext> repo) { var dto = _chatService.GetChannelMessages(channelId, messageDtoFactory, repo); return(Ok(dto)); }
public IActionResult GetServer(int serverId, [FromServices] ServerDataDtoFactory dataDtoFactory, [FromServices] ChatEntityRepositoryProxy <Server, ChatDbContext> repo) { var dto = _chatService.GetServerData(serverId, dataDtoFactory, repo); return(Ok(dto)); }