Ejemplo n.º 1
0
 private static ParameterAllowableValues GetAllowableValue(ApiAllowableValuesAttribute attr)
 {
     if (attr != null)
     {
         return new ParameterAllowableValues
         {
             ValueType = attr.Type,
             Values = attr.Values,
             Max = attr.Max,
             Min = attr.Min
         };
     }
     return null;
 }
 private static List <string> GetEnumValues(ApiAllowableValuesAttribute attr)
 {
     return(attr != null && attr.Values != null?attr.Values.ToList() : null);
 }