using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Serwer.Core.Domain { public class UserHistory { private readonly ISet<string> _history; public User User { get; protected set; } public List<string> History { get { return _history.Select(x => x).ToList(); } } public UserHistory(User user) { User = user; _history = new HashSet<string>(); } public void Add(string query) { _history.Add(query); } } }