Exemple #1
0
        private IList <Field> GetFieldsByNames(int contentId, IEnumerable <CsvDbUpdateFieldModel> csvRowFields, string contentNameFieldPrefix = "")
        {
            var fieldNames = csvRowFields.Where(FilterByPrefix(contentNameFieldPrefix)).Select(f => f.Name.Substring(contentNameFieldPrefix.Length)).ToList();

            return(_fieldRepository.GetByNames(contentId, fieldNames));
        }