Example #1
0
        public int AddChatSession(Models.ChatSessionViewModel chatsession)
        {
            var chatSessionDto = chatsession.ToDtoModel();
            var chatSessionId  = httpClient.GetAsync <int>(string.Format("api/ChatSession/CreateChatSession?Topic={0}&StartBy={1}&StartOn={2}&IsFinished={3}", chatSessionDto.Topic, chatSessionDto.StartBy, chatSessionDto.StartOn, chatSessionDto.IsFinished));

            return(chatSessionId);
        }
Example #2
0
        public void JoinSession(Models.ChatSessionViewModel chatsession)
        {
            var chatSessionDto = chatsession.ToDtoModel();

            httpClient.PostAsJsonAsync("api/ChatSession/JoinToSession", chatSessionDto, true);
        }