diff --git a/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs b/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs index 9663f0e..b0dc18f 100644 --- a/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs +++ b/src/PowderCoating.Application/DTOs/Customer/CustomerDtos.cs @@ -140,12 +140,12 @@ public class CreateCustomerDto : IValidatableObject new[] { nameof(CompanyName), nameof(ContactFirstName), nameof(ContactLastName) }); } - // At least one contact method is required (Email OR Phone) - if (string.IsNullOrWhiteSpace(Email) && string.IsNullOrWhiteSpace(Phone)) + // At least one contact method is required (Email, Phone, or Mobile Phone) + if (string.IsNullOrWhiteSpace(Email) && string.IsNullOrWhiteSpace(Phone) && string.IsNullOrWhiteSpace(MobilePhone)) { yield return new ValidationResult( - "Please provide at least one contact method (Email or Phone)", - new[] { nameof(Email), nameof(Phone) }); + "Please provide at least one contact method (Email, Phone, or Mobile Phone)", + new[] { nameof(Email), nameof(Phone), nameof(MobilePhone) }); } // Validate each address in comma-separated email fields diff --git a/src/PowderCoating.Web/Views/Customers/Create.cshtml b/src/PowderCoating.Web/Views/Customers/Create.cshtml index fe8c25b..70df405 100644 --- a/src/PowderCoating.Web/Views/Customers/Create.cshtml +++ b/src/PowderCoating.Web/Views/Customers/Create.cshtml @@ -59,7 +59,7 @@