forked from ddrilling/AsbCloudServer
todo TimeDtoValidator
This commit is contained in:
parent
d6d14ca2f2
commit
9793280b28
@ -5,6 +5,11 @@ namespace AsbCloudInfrastructure.Validators
|
||||
{
|
||||
public class TimeDtoValidator : AbstractValidator<TimeDto>
|
||||
{
|
||||
|
||||
//TODO: в текущей реализации данные проверки регулируются в свойстве модели блоком set
|
||||
// какая предпочтительнее?
|
||||
|
||||
|
||||
public TimeDtoValidator()
|
||||
{
|
||||
RuleFor(x => x.Hour)
|
||||
|
Loading…
Reference in New Issue
Block a user