Validate in both frontend and backend that every start and finish date of every attraction doesn't collide with another attraction.
Right now, there's no validation at all.
Context:
Destination has a start and finish date
Every attraction's start and finish must be inside these two dates. But also they don't have to collide with any other attraction. But a start date can be the same that another finish date.
Of course start and finish dates of the same attraction must be start <= finish.
This info must return an error in the backend : " throw new ConflictException('There are attractions that collide dates with other attractions dates.') "
And the frontend must display an error such as : " Invalid date "
Validate in both frontend and backend that every start and finish date of every attraction doesn't collide with another attraction. Right now, there's no validation at all. Context:
throw new ConflictException('There are attractions that collide dates with other attractions dates.')
"