Files
blazor-crm/Features/Pipeline/Campaign/Cqrs/UpdateCampaignValidator.cs
T
2026-07-21 13:59:38 +07:00

14 lines
460 B
C#

using FluentValidation;
using Indotalent.Shared.Consts;
namespace Indotalent.Features.Pipeline.Campaign.Cqrs;
public class UpdateCampaignValidator : AbstractValidator<UpdateCampaignRequest>
{
public UpdateCampaignValidator()
{
RuleFor(x => x.Id).NotEmpty();
RuleFor(x => x.Title).NotEmpty().MaximumLength(GlobalConsts.StringLengthShort);
RuleFor(x => x.SalesTeamId).NotEmpty().WithMessage("Sales Team is required");
}
}