示例#1
0
        protected virtual List <LocalizedProperty> UpdateLocales(InteractiveForm.FormAttribute attribute, InteractiveFormAttributeModel model)
        {
            List <LocalizedProperty> localized = new List <LocalizedProperty>();

            foreach (var local in model.Locales)
            {
                localized.Add(new LocalizedProperty()
                {
                    LanguageId  = local.LanguageId,
                    LocaleKey   = "Name",
                    LocaleValue = local.Name
                });
            }
            return(localized);
        }
 public static InteractiveForm.FormAttribute ToEntity(this InteractiveFormAttributeModel model, InteractiveForm.FormAttribute destination)
 {
     return(model.MapTo(destination));
 }
 public static InteractiveFormAttributeModel ToModel(this InteractiveForm.FormAttribute entity)
 {
     return(entity.MapTo <InteractiveForm.FormAttribute, InteractiveFormAttributeModel>());
 }