Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

389 B
Raw Blame
namespace Grand.Web.AdminShared.Validators.Common;

public static class CommonValid
{
    public static bool IsCommissionValid(double? commission)
    {
        switch (commission)
        {
            case null:
                return true;
            case < 0:
            case > 100:
                return false;
            default:
                return true;
        }
    }
}