public static string GetDisplayTextFrequencyPostfix(WageType type, WageUnit unit, WageDetails wageDetails) { string postfix = unit.GetWagePostfix(); string displayAmount = GetDisplayText(type, unit, wageDetails); if (string.IsNullOrWhiteSpace(displayAmount)) { return(postfix); } return($"{displayAmount} {postfix}"); }
public static string GetDisplayAmountWithFrequencyPostfix(WageType type, decimal?amount, decimal?amountLowerBound, decimal?amountUpperBound, string text, WageUnit unit, decimal?hoursPerWeek, DateTime?possibleDateTime) { var postfix = unit.GetWagePostfix(); var displayAmount = GetDisplayAmount(type, amount, amountLowerBound, amountUpperBound, text, hoursPerWeek, possibleDateTime); if (string.IsNullOrWhiteSpace(displayAmount)) { return(postfix); } return($"{displayAmount} {postfix}"); }