Try your search with a different keyword or use * as a wildcard.
namespace Nop.Core.Domain.Customers;
///
/// RewardPointsActivatingDelayPeriod Extensions
///
public static class RewardPointsActivatingDelayPeriodExtensions
{
///
/// Returns a delay period before activating points in hours
///
/// Reward points activating delay period
/// Value of delay
/// Value of delay in hours
public static int ToHours(this RewardPointsActivatingDelayPeriod period, int value)
{
return period switch
{
RewardPointsActivatingDelayPeriod.Hours => value,
RewardPointsActivatingDelayPeriod.Days => value * 24,
_ => throw new ArgumentOutOfRangeException(nameof(period)),
};
}
}