public static void PhoneNumber <T>(this IRuleBuilderInitial <T, string> field)
 {
     field
     .Apply(Rules.PhoneNumber)
     .WithMessage("Enter a telephone number in the correct format");
 }
 public static void Website <T>(this IRuleBuilderInitial <T, string> field)
 {
     field
     .Apply(Rules.Website)
     .WithMessage("Enter a website in the correct format");
 }
Example #3
0
 public static void Website <T>(this IRuleBuilderInitial <T, string> field)
 {
     field
     .Apply(Rules.Website)
     .WithMessageFromErrorCode("VENUE_WEBSITE_FORMAT");
 }
Example #4
0
 public static void Website <T>(this IRuleBuilderInitial <T, string> field) =>
 field
 .Apply(Rules.Website)
 .WithMessage("Website must be a real webpage, like http://www.provider.com/apprenticeship");
 public static void ContactWebsite <T>(this IRuleBuilderInitial <T, string> field) =>
 field
 .Apply(Rules.Website)
 .WithMessageFromErrorCode("APPRENTICESHIP_CONTACTUS_FORMAT");