public void SaveMessageForUser(long senderId, ConverastionMessage message) { GenericError error; message.SenderUserId = senderId; MessagesRepository.InsertEntity(out error, message); }
private static bool IsParticipant(long userId, ConverastionMessage message) { return (message.Receivers.Any(r => r.UserId == userId)) || message.SenderUserId == userId; }