Hi ,
I have a model class Customer in which have the CustomerIndex and CustomerName Property.
I need to Show the message when CustomerName is null.
Message is __"Please provide the Name of Customer 1."__ Then 1 is the value of CustomerIndex.
RuleFor(x => x.CustomerName).NotNull().WithMessage("Please provide the Name of Customer", x => x.CustomerIndex))
But when i am executing this code I have found the message __"Please provide the Name of Customer true"__
I have found the true value in place of 1.
So can u please suggest me what is the issue.
I have a model class Customer in which have the CustomerIndex and CustomerName Property.
I need to Show the message when CustomerName is null.
Message is __"Please provide the Name of Customer 1."__ Then 1 is the value of CustomerIndex.
RuleFor(x => x.CustomerName).NotNull().WithMessage("Please provide the Name of Customer", x => x.CustomerIndex))
But when i am executing this code I have found the message __"Please provide the Name of Customer true"__
I have found the true value in place of 1.
So can u please suggest me what is the issue.