public ServiceChannelTranslationDefinitionHelper AddAttachmentsDefinition <TOut>(ITranslationDefinitions <ServiceChannelVersioned, TOut> definition, ServiceChannelVersioned entity) where TOut : IAttachments { definition.AddDictionaryList(i => i.Attachments.Select(x => x.Attachment).OrderBy(x => x.OrderNumber).ThenBy(x => x.Created), o => o.Attachments, x => languageCache.GetByValue(x.LocalizationId)); return(this); }