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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using FluentValidation;
using Grand.Infrastructure.Validators;
using Grand.Web.AdminShared.Models.Tasks;
namespace Grand.Web.AdminShared.Validators.Tasks;
public class ScheduleTaskValidator : BaseGrandValidator<ScheduleTaskModel>
{
public ScheduleTaskValidator(
IEnumerable<IValidatorConsumer<ScheduleTaskModel>> validators)
: base(validators)
{
RuleFor(x => x.TimeInterval).GreaterThan(0).WithMessage("Time interval must be greater than zero");
}
}