public static string maskForDocument(DocumentTypeEnum documentType)
 {
     string format = String.Empty;
     if (documentType.Equals(DocumentTypeEnum.DNI))
         format = "00\\.000\\.000";
     else if (documentType.Equals(DocumentTypeEnum.CUIL))
         format = "00-00000000-0";
     else if (documentType.Equals(DocumentTypeEnum.CUIT))
         format = "00-00000000-0";
     return format;
 }
 public static string formatForDocument(DocumentTypeEnum documentType)
 {
     string format = String.Empty;
     if (documentType.Equals(DocumentTypeEnum.DNI))
         format = "##\\.###\\.###";
     else if (documentType.Equals(DocumentTypeEnum.CUIL))
         format = "##-########-#";
     else if (documentType.Equals(DocumentTypeEnum.CUIT))
         format = "##-########-#";
     return format;
 }