public async Task CreateLog(string word, List <string> anagrams, TaskType type) { var time = DateTime.Now; var ip = GetIp(); string anagramsString; if (anagrams == null) { anagramsString = ""; } else { anagramsString = string.Join(";", anagrams.ToArray()); } var userLog = new EF.CodeFirst.Models.UserLogEntity() { Anagrams = anagramsString, Time = time, UserIp = ip, SearchedWord = word, Type = type }; await _uerLogRepository.CreateLog(userLog); }