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 _history; public User User { get; protected set; } public List History { get { return _history.Select(x => x).ToList(); } } public UserHistory(User user) { User = user; _history = new HashSet(); } public void Add(string query) { _history.Add(query); } } }