Create Dto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestPerson : DtoBase, IValidatableObject | |
{ | |
public string Title { get; set; } | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public string Initials { get; set; } | |
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) | |
{ | |
//if (Id == 0) | |
//{ | |
// CustomValidationErrors++; | |
// yield return new ValidationResult("Should have used a PUT"); | |
//} | |
return Enumerable.Empty<ValidationResult>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment