public override NotPassedRuleRecord Validate(ValidateOrderModel order) { return Validate( () => order.CreatedDate.TimeOfDay >= TimeSpan.FromHours(_ctx.MinHour) && order.CreatedDate.TimeOfDay < TimeSpan.FromHours(_ctx.MaxHour), new { OrderCreatedTime = order.CreatedDate.ToString("dd.MM.yyyy HH:mm") }); }
public abstract NotPassedRuleRecord Validate(ValidateOrderModel order);