Exemple #1
0
 public Task <string> GetFormGroup(ModelExplorer property, TweakingConfiguration tweakingConfig)
 {
     if (!property.IsReadOnly())
     {
         ItemsSourceAttribute itemSource;
         if (property.HasValueFromSelectList(out itemSource))
         {
             return(_getFormGroupForSelectList(property, itemSource.GetItems(property.Container),
                                               itemSource.ChoicesType, tweakingConfig));
         }
         else if (property.ModelType.IsSimpleType())
         {
             return(_getFormGroupForSimpleProperty(property, tweakingConfig));
         }
         else
         {
             return(_getFormGroupsForComplexProperty(property, tweakingConfig));
         }
     }
     else
     {
         return(Task.Run(() => String.Empty));
     }
 }