Ejemplo n.º 1
0
        public static ChatRoomModel Convert(ChatRoom chatRoom)
        {
            ChatRoomModel model = new ChatRoomModel
            {
                ChatRoomId = chatRoom.Id,
                Name = chatRoom.Name,
                PostCount = chatRoom.Posts.Count,
                UserCount = chatRoom.Users.Count
            };

            return model;
        }
Ejemplo n.º 2
0
        public static ChatRoomModel Convert(ChatRoom chatRoom)
        {
            ChatRoomModel model = new ChatRoomModel
            {
                ChatRoomId = chatRoom.Id,
                Name       = chatRoom.Name,
                PostCount  = chatRoom.Posts.Count,
                UserCount  = chatRoom.Users.Count
            };

            return(model);
        }