Exemplo n.º 1
0
    /// <summary>
    /// Gets object from the specified column of the public status with specific ID.
    /// </summary>
    /// <param name="parameters">Public status ID; Column name</param>
    public static object GetPublicStatus(params object[] parameters)
    {
        switch (parameters.Length)
        {
        case 2:
            return(EcommerceFunctions.GetPublicStatus(parameters[0], ValidationHelper.GetString(parameters[1], "")));

        default:
            throw new NotSupportedException();
        }
    }
    /// <summary>
    /// Returns the public SKU status display name.
    /// </summary>
    /// <param name="parameters">Status ID</param>
    public static object GetPublicStatusName(params object[] parameters)
    {
        switch (parameters.Length)
        {
        case 1:
            return(EcommerceFunctions.GetPublicStatus(parameters[0], "SKUPublicStatusID"));

        default:
            throw new NotSupportedException();
        }
    }