diff --git a/Basic_crud/Models/Customer.cs b/Basic_crud/Models/Customer.cs index 523692e..71d42a4 100644 --- a/Basic_crud/Models/Customer.cs +++ b/Basic_crud/Models/Customer.cs @@ -7,7 +7,7 @@ public class Customer [Key] public int Id { get; set; } [Required] - public string Name { get; set; } + public string Name { get; set; } =string.Empty; [DataType(DataType.EmailAddress)] public string Email { get; set; } [Required]