private void increaseVisits(int id) { var ip = Utilities.GetIP(); var now = DateTime.Now; var threadStart = new ThreadStart(() => { Articles.AddVisits(id); ArticleVisit visit = new ArticleVisit { IP = ip, LastUpdate = now, UserID = UserID, ArticleID = id }; ArticleVisits.Insert(visit); }); Thread thread = new Thread(threadStart); thread.Start(); }