Skip to content

Homework 7#8

Open
prashant1shukla wants to merge 7 commits intomainfrom
Homework-7
Open

Homework 7#8
prashant1shukla wants to merge 7 commits intomainfrom
Homework-7

Conversation

@prashant1shukla
Copy link
Owner

Annotation 2024-05-16 014632 Annotation 2024-05-16 0147321

public class UserRegistrationDTO
{
[Required]
[StringLength(50/0, MinimumLength = 3)]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is 50/0?

[Phone]
public required string PhoneNumber { get; set; }

public string? Country { get; set; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is the check for the country?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use top level statements

{
public class CVVAttribute : ValidationAttribute
{
protected override ValidationResult IsValid(object value, ValidationContext validationContext)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the value can be null where is ? after the object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants