I have a three column ScheduleDate,RegistrationDate, SalesTargetHrs for the CustomerSales modal.How can I validate ScheduleDate must be greater than SalesTargetHrs and RegistrationDate. For example Registration Date is ‘2024-07-24 11:23:45’ and SalesTargetHrs is 72 hrs , then the ScheduleDate should be greater than that of the date of RegistrationDate after adding SalesTargetHrs. How can I show custom validation attribute and error message ‘Scheduled greater than expected targeted Date’
public class CustomerSales()
{
public DateTime RegistrationDate {get;set;}
public DateTime ScheduleDate{get;set;}
public int SalesTargetHrs {get;set;}
}