public static FormFieldAuthor WithValue(this FormFieldAuthor formField, string email) { formField.Value = !string.IsNullOrEmpty(email) ? new Person(email) : null; return(formField); }
public static FormFieldAuthor WithValue(this FormFieldAuthor formField, Person person) { formField.Value = person; return(formField); }
public static FormFieldAuthor WithValue(this FormFieldAuthor formField, int?personId) { formField.Value = personId.HasValue ? new Person(personId.Value) : null; return(formField); }