public List <CountryLanguageLineHistory> GetCountryLanguageLineHistoryList(List <CountryLanguageLine> itemLanguageLines)
        {
            var result = new List <CountryLanguageLineHistory>();
            var user   = _repositoryUser.Get().FirstOrDefault(x => x.DisplayOrder == 1);

            if (user == null)
            {
                return(new List <CountryLanguageLineHistory>());
            }

            foreach (var itemLanguageLine in itemLanguageLines)
            {
                var item = new CountryLanguageLineHistory
                {
                    Id = Guid.NewGuid(),
                    CountryLanguageLineId = itemLanguageLine.Id,
                    CountryId             = itemLanguageLine.Country.Id,
                    LanguageId            = itemLanguageLine.Language.Id,
                    CreateDate            = DateTime.Now,
                    CreatedBy             = user.Id,
                    VersionNo             = 1,
                    RestoreVersionNo      = 0,
                    IsDeleted             = false
                };
                result.Add(item);
            }
            return(result);
        }
 public void AddCountryLanguageLineHistory(CountryLanguageLineHistory itemLanguageLineHistory)
 {
     _repositoryCountryLanguageLineHistory.Add(itemLanguageLineHistory);
     _repositoryCountryLanguageLineHistory.SaveChanges();
 }