public static long SetEnumParam <T>(this ONLCompetition comp, string paramName, T value, long?iidToSet = null)
            where T : struct
        {
            Type   underlyingType = Enum.GetUnderlyingType(typeof(T));
            object typeVal        = Convert.ChangeType(value, underlyingType);

            return(comp.SetObjectParam(paramName, typeVal, (c => c.ToString()), iidToSet));
        }
 public static long SetDateParam(this ONLCompetition comp, string paramName, DateTime?value, long?iidToSet = null)
 {
     return(comp.SetObjectParam(paramName, value, (d => ((DateTime?)d).Value.ToString("dd MMMM yyyy", new CultureInfo("ru-RU"))), iidToSet));
 }
 public static long SetStringParam(this ONLCompetition comp, string paramName, string value, long?iidToSet = null)
 {
     return(comp.SetObjectParam(paramName, value, (o => (string)o), iidToSet));
 }