Beispiel #1
0
        public ActionResult GetAnagramsFromDictionary(string input)
        {
            Cookies(input);

            Stopwatch timer = new Stopwatch();

            timer.Start();

            ViewBag.Model = _anagramsService.CacheAnagrams(input);

            timer.Stop();
            var    timeResult = timer.ElapsedMilliseconds;
            string userIp     = System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()).AddressList[1].ToString();

            _userLogService.SaveUserSearch(userIp, timeResult, input);
            return(View());
        }