public virtual RoomDto ToDto(UserId dtoReciver) { return(new RoomDto(_name, _admin, _users, _files.Values, _messages.Values, RoomType.Chat, null)); }
public bool IsUserExist(UserId userId) { return(_users.Contains(userId)); }