Exemple #1
0
        public async Task SendToUser(ContactMessageDto message)
        {
            var usr = GetCurrentUser();

            message.sentOn = DateTime.Now;
            var x = _contactService.AddMessageToConversation(message);

            message.Id = x.Id;

            await Clients.User(message.toId).SendAsync("SendToUser", message);
        }