Skip to content

Commit

Permalink
In itialized Fields with Empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
shivam committed Aug 30, 2023
1 parent 7ce43ee commit d6c1b07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Basic_crud/Models/Customer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ public class Customer
[DataType(DataType.EmailAddress)]
public string Email { get; set; } = string.Empty;
[Required]
public string City { get; set; }
public string City { get; set; } = string.Empty;
[Required]
public string Phone { get; set; }
public string Phone { get; set; } = string.Empty;

}
}

0 comments on commit d6c1b07

Please sign in to comment.